Uploaded image for project: 'Ivy'
  1. Ivy
  2. IVY-1251

Mysterious corrupted ivy classpath passed to javac task causes javac warnings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 2.2.0
    • None
    • Core
    • None
    • ivy-2.2.0
      ant-1.7.1
      javac 1.6.0_18
      openSUSE 11.3

    Description

      There is some weird problem where a classpath generated by ivy gets corrupted when (before? after?) it gets passed to the <javac> ant task.

      How to reproduce:

      1. Unpack the attached ZIP file test case
      2. Change directory into the ivywarnbug directory
      3. Copy your favorite version of ivy.jar to the current directory (I'm using version 2.2.0)
      4. Run "ant"

      This is what I see (line breaks added for clarity):

      bug:
           [echo] jibx.path=/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-schema-1.2.2.jar
        :/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run-1.2.2.jar
        :/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind-1.2.2.jar
        :/home/archie/ivywarnbug/cache/org.apache.bcel/bcel/jars/bcel-5.1.jar
        :/home/archie/ivywarnbug/cache/org.apache.log4j/log4j/jars/log4j-1.2.15.jar
         [delete] Deleting directory /home/archie/ivywarnbug/classes
          [mkdir] Created dir: /home/archie/ivywarnbug/classes
          [javac] Compiling 1 source file to /home/archie/ivywarnbug/classes
          [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-run.jar": no such file or directory
          [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/jibx-bind.jar": no such file or directory
          [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/xpp3.jar": no such file or directory
          [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/stax-api.jar": no such file or directory
          [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/wstx-asl.jar": no such file or directory
          [javac] warning: [path] bad path element "/home/archie/ivywarnbug/cache/net.sourceforge.jibx/jibx/jars/bcel.jar": no such file or directory
          [javac] 6 warnings
      

      Note that the output of the <echo> task displays the correct path, but <javac> complains about non-existent files in the path that it sees, and the paths are different!

      Somehow the path is getting corrupted somehow when it gets passed to <javac>.

      Also weird is that this only happens for a few modules in Ivy Roundup. So far I've only seen it happen with JiBX and iText.

      Attachments

        1. ivywarnbug.zip
          3 kB
          Archie Cobbs

        Activity

          People

            Unassigned Unassigned
            archie172 Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: