SOLR-878: add an ant task to download and run luke

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@720273 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2008-11-24 19:43:58 +00:00
parent 14c9ca77d7
commit 2391d81e3e
1 changed files with 28 additions and 0 deletions

View File

@ -58,6 +58,7 @@
<echo message="Use 'ant dist' to build the project WAR and JAR files." />
<echo message="Use 'ant generate-maven-artifacts' to generate maven artifacts." />
<echo message="Use 'ant package' to generate zip, tgz, and maven artifacts for distribution." />
<echo message="Use 'ant luke' to start luke. see: http://www.getopt.org/luke/" />
<echo message="Use 'ant test' to run unit tests." />
</target>
@ -882,6 +883,33 @@
</rat:report>
</target>
<!-- LUKE -->
<available file="luke/luke-0.9.1.jar" property="luke.jar.exists" />
<target name="luke-download" unless="luke.jar.exists">
<mkdir dir="luke"/>
<get src="http://www.getopt.org/luke/luke-0.9.1/luke-0.9.1.jar"
dest="luke/luke-0.9.1.jar"/>
<get src="http://people.apache.org/repo/m2-snapshot-repository/org/apache/lucene/lucene-misc/2.4-SNAPSHOT/lucene-misc-2.4-SNAPSHOT.jar"
dest="luke/lucene-misc-2.4-SNAPSHOT.jar" />
</target>
<target name="luke" depends="luke-download">
<java fork="true"
classname="org.getopt.luke.Luke"
logError="true"
failonerror="true">
<classpath>
<fileset dir="${lib}">
<include name="*.jar" />
</fileset>
<fileset dir="luke">
<include name="luke-0.9.1.jar"/>
<include name="lucene-misc-2.4-SNAPSHOT.jar"/>
</fileset>
</classpath>
</java>
</target>
</project>