Apache Lucene open-source search software
SOLR-854: Add run-example build target
Erik Hatcher1ff2b34bff96
diff --git a/CHANGES.txt b/CHANGES.txtindex 196958d1b31..03ed5978aac 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -127,6 +127,8 @@ Other ChangesBuild----------------------1. SOLR-776: Added in ability to sign artifacts via Ant for releases (gsingers)++ 2. SOLR-854: Added run-example target (Mark Miller vie ehatcher)Documentationdiff --git a/build.xml b/build.xmlindex d748dc7aae5..d4ffe9c4617 100644--- a/build.xml+++ b/build.xml@@ -634,6 +634,16 @@</delete><echo>See ${example}/README.txt for how to run the Solr example configuration.</echo></target>++ <target name="run-example" depends="example">+ <property name="example.solr.home" location="example/solr"/>+ <property name="example.data.dir" location="example/solr/data"/>+ <java jar="${example}/start.jar" fork="true" dir="${example}">+ <sysproperty key="solr.solr.home" file="${example.solr.home}"/>+ <sysproperty key="solr.data.dir" file="${example.data.dir}"/>+ </java>++ </target><!-- make a distribution --><target name="package" depends="generate-maven-artifacts"/>