Skip to content

Apache Lucene open-source search software

IntelliJ configuration: enable IntelliJ .alg file copying to benchmark/build/classes/test/conf/ via a new Ant task 'copy-alg-files-for-testing', which is now also called by the benchmark module's compile-test target. (Standard IntelliJ configuration mechanisms don't support copying to a sub-directory of the test output directory.)

Steven Rowe0945a6521f01
diff --git a/dev-tools/idea/.idea/workspace.xml b/dev-tools/idea/.idea/workspace.xml
index 8917e84ade4..5145911dab8 100644
--- a/dev-tools/idea/.idea/workspace.xml
+++ b/dev-tools/idea/.idea/workspace.xml
@@ -17,6 +17,10 @@
<option name="WORKING_DIRECTORY" value="file://$PROJECT_DIR$/modules/benchmark/build" />
<option name="VM_PARAMETERS" value="-ea -DtempDir=temp" />
<option name="TEST_SEARCH_SCOPE"><value defaultName="singleModule" /></option>
+ <method>
+ <option name="AntTarget" enabled="true" target="copy-alg-files-for-testing"
+ antfile="file://$PROJECT_DIR$/modules/benchmark/build.xml" />
+ </method>
</configuration>
<configuration default="false" name="clustering contrib" type="JUnit" factoryName="JUnit">
<module name="clustering" />
diff --git a/modules/benchmark/build.xml b/modules/benchmark/build.xml
index 972014e1dae..8baa7bea385 100644
--- a/modules/benchmark/build.xml
+++ b/modules/benchmark/build.xml
@@ -265,10 +265,10 @@
/>
</target>
- <target name="compile-test" depends="contrib-build.compile-test">
- <!-- copy .alg files as resources for testing -->
- <copy todir="${build.dir}/classes/test/conf">
- <fileset dir="conf"/>
- </copy>
+ <target name="compile-test" depends="copy-alg-files-for-testing,contrib-build.compile-test"/>
+ <target name="copy-alg-files-for-testing" description="copy .alg files as resources for testing">
+ <copy todir="${build.dir}/classes/test/conf">
+ <fileset dir="conf"/>
+ </copy>
</target>
</project>