Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-3268: use sync for more safety

Robert Muiree7e14e5fd0e
diff --git a/solr/common-build.xml b/solr/common-build.xml
index 41a1234894d..2b3314caf90 100644
--- a/solr/common-build.xml
+++ b/solr/common-build.xml
@@ -281,10 +281,13 @@
</ant>
</target>
+ <!-- TODO: really a copy should work: but sync is currently safer
+ since some buggy tests don't create their own tempdir but
+ modify this target directory directly... -->
<target name="sync-resources">
- <copy todir="${build.dir}/test-files">
+ <sync todir="${build.dir}/test-files">
<fileset dir="${tests.userdir}"/>
- </copy>
+ </sync>
</target>
<!-- Solr test-framework targets -->