Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1, 6.0
    • Component/s: general/build
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      remove ivy from your .ant/lib but load it up on a build file like so:

      You have to lie to lucene's build, overriding ivy.available, because for some reason the detection is wrong and will tell you ivy is not available, when it actually is.

      I tried changing the detector to use available classname=some.ivy.class and this didnt work either... so I don't actually know what the correct fix is.

      <project name="test" default="test" basedir=".">
      
        <path id="ivy.lib.path">
          <fileset dir="/Users/rmuir" includes="ivy-2.2.0.jar" />
        </path>
        <taskdef resource="org/apache/ivy/ant/antlib.xml" uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path" />
      
        <target name="test">
          <subant target="test" inheritAll="false" inheritRefs="false" failonerror="true">
            <fileset dir="lucene-trunk/lucene" includes="build.xml"/>
            <!-- lie -->
            <property name="ivy.available" value="true"/>
          </subant>
        </target>
      
      </project>
      

        Activity

        Hide
        Ryan Ernst added a comment -

        This patch replaces the <availability> check with a <typefound> check. Using your example wrapper build.xml, setting ivy.available is no longer necessary.

        Show
        Ryan Ernst added a comment - This patch replaces the <availability> check with a <typefound> check. Using your example wrapper build.xml, setting ivy.available is no longer necessary.
        Hide
        Robert Muir added a comment -

        patch looks good, typefound looks like the right answer (its a new one to me).

        Show
        Robert Muir added a comment - patch looks good, typefound looks like the right answer (its a new one to me).
        Hide
        Dawid Weiss added a comment -

        Nice, didn't know about it either.

        Show
        Dawid Weiss added a comment - Nice, didn't know about it either.
        Hide
        Commit Tag Bot added a comment -

        [trunk commit] Robert Muir
        http://svn.apache.org/viewvc?view=revision&revision=1419366

        LUCENE-4601: fix ivy availability check to use typefound

        Show
        Commit Tag Bot added a comment - [trunk commit] Robert Muir http://svn.apache.org/viewvc?view=revision&revision=1419366 LUCENE-4601 : fix ivy availability check to use typefound
        Hide
        Robert Muir added a comment -

        Thanks Ryan!

        Show
        Robert Muir added a comment - Thanks Ryan!
        Hide
        Commit Tag Bot added a comment -

        [branch_4x commit] Robert Muir
        http://svn.apache.org/viewvc?view=revision&revision=1419368

        LUCENE-4601: fix ivy availability check to use typefound

        Show
        Commit Tag Bot added a comment - [branch_4x commit] Robert Muir http://svn.apache.org/viewvc?view=revision&revision=1419368 LUCENE-4601 : fix ivy availability check to use typefound
        Hide
        Itamar Syn-Hershko added a comment -

        May not be directly related, but I just tried running this: http://wiki.apache.org/lucene-java/HowtoConfigureIntelliJ on OSX Mavericks, with ant and ivy both installed via homebrew. Ivy was not found by and idea even when I placed a manually downloaded jar locally myself.

        I had to run ivy-bootstrap to get off the ground - maybe it worths adding that to the docs

        Show
        Itamar Syn-Hershko added a comment - May not be directly related, but I just tried running this: http://wiki.apache.org/lucene-java/HowtoConfigureIntelliJ on OSX Mavericks, with ant and ivy both installed via homebrew. Ivy was not found by and idea even when I placed a manually downloaded jar locally myself. I had to run ivy-bootstrap to get off the ground - maybe it worths adding that to the docs
        Hide
        Steve Rowe added a comment -

        Thanks Itamar, I've added ant ivy-bootstrap to the ine instructions on that wiki page.

        Show
        Steve Rowe added a comment - Thanks Itamar, I've added ant ivy-bootstrap to the ine instructions on that wiki page.

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development