Issue Details (XML | Word | Printable)

Key: GROOVY-2149
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Paul King
Reporter: Gig Patel
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
groovy

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

Created: 26/Sep/07 03:47 PM   Updated: 22/Nov/07 05:21 AM
Component/s: Ant integration
Affects Version/s: 1.1-beta-3
Fix Version/s: 1.1-rc-2

Time Tracking:
Not Specified

File Attachments: 1. XML File build.xml (0.8 kB)
2. File Fibonacci.groovy (0.1 kB)

Environment: Windows XP, Ant 1.7, JDK1.5_R12


 Description  « Hide
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>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul King added a comment - 29/Sep/07 02:14 AM
This isn't a bug but current behaviour. The all jar doesn't include the commons-cli which you need. You may ask for a feature enhancement if you want a jar merging commons-cli.

Stefan Saring added a comment - 14/Oct/07 01:35 PM
Hi,

I have the same problem. It's really annoying to include the commons-cli.jar everytime just for the groovyc Ant task. The idea of the groovy-all-1.1-rc-1.jar is to include all dependencies. It contains the groovyc Ant task but not the required commons-cli.jar. It would be great when it could be included, hopefully in the 1.1 release.

Thanks,
Stefan


Guillaume Laforge added a comment - 14/Oct/07 03:51 PM
We should probably include commons-cli in the all jar.

Paul King added a comment - 17/Oct/07 12:17 AM
Fixed in head

Russel Winder added a comment - 14/Nov/07 05:00 AM
This change has broken Grails. cf. GROOVY-2295. The problem is to do with Gant and how to compile it for use with groovy-all instead of groovy + commons-cli.

Paul King added a comment - 14/Nov/07 06:37 AM
A fix has been proposed for the issue Russel mentioned which should mean the solution to this issue will not be impacted.

Russel Winder added a comment - 14/Nov/07 09:47 AM
Which is why I didn't reopen the issue

I put the marker here more to ensure we had a proper connection between issues for documentation purposes.