Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2149

Groovyc ant task cannot be found when using embeddable/groovy-all*.jar in ant build script

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1-beta-3
    • 1.1-rc-2
    • Ant integration
    • None
    • Windows XP, Ant 1.7, JDK1.5_R12

    Description

      Ant fails to find Groovyc class when using the groovy-all*.jar. However if the classpath is changed to point to GROOVY_HOME\lib it works fine. I have attached the build.xml file and fibonacci.groovy for example.

      Here is the error ....
      C:\Z>ant
      Buildfile: build.xml

      BUILD FAILED
      C:\Z\build.xml:10: taskdef A class needed by class org.codehaus.groovy.ant.Groovyc cannot be found: org/apache/commons/cli/ParseException

      Total time: 0 seconds
      C:\Z>

      Attachments

        1. Fibonacci.groovy
          0.1 kB
          Gig Patel
        2. build.xml
          0.8 kB
          Gig Patel

        Activity

          People

            paulk Paul King
            gig100 Gig Patel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: