lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <gsing...@apache.org>
Subject Re: ant task to download and run luke
Date Mon, 24 Nov 2008 17:05:50 GMT

On Nov 23, 2008, at 2:24 PM, Ryan McKinley wrote:

> Hi-
>
> I know luke is not included in lucene/solr because it has GPL  
> dependencies...  however, are we able to include an ant task that  
> downloads the relevant jar files and starts luke?

I think this should be fine.  FWIW, Andrzej, I believe, has asked if  
anyone is willing to take on the Thinlet dependency and replace it,  
such that it could be donated to Lucene, as all the other code is ASL...

>
>
> The java webstart version is great if solr happens to be on the same  
> lucene version, but I often stumble to get things all synked up.
>
> Here is an ant task to do this...
>
> (it needs to download lucene-misc because luke appears to use  
> SweetSpotSimilarity)
>
>  <!-- 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>



Mime
View raw message