Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1849

ant luke target in Solr build no longer works

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.5
    • None
    • None

    Description

      Here's a fix:

      <property  name="luke.version" value="1.0.0"/>
        <available file="luke/luke-${luke.version}.jar" property="luke.jar.exists" />
        <target name="luke-download" unless="luke.jar.exists" depends="proxy.setup">
          <mkdir dir="luke"/>
          <get src="http://luke.googlecode.com/files/luke-${luke.version}.jar"
              dest="luke/luke-${luke.version}.jar"/>
        </target>
        
        <target name="luke" depends="luke-download">
          <java fork="true" 
                classname="org.getopt.luke.Luke"
                logError="true"
                failonerror="true">
            <classpath>
              <fileset dir="luke">
                <include name="luke-${luke.version}.jar"/>
              </fileset>
              <path refid="lucene.classpath"/>
              <path refid="test.run.classpath"/>
             </classpath>
          </java>
        </target>
      

      But it requires there to be a standalone, downloadable version of Luke w/o any Lucene bundled in.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gsingers Grant Ingersoll
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: