Issue Details (XML | Word | Printable)

Key: GROOVY-1960
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Paul King
Reporter: Keith Koski
Votes: 0
Watchers: 0
Operations

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

bundling Groovy jar in Ant lib dir causes Sql to fail to fails to find driver class when jar file specified in classpath element

Created: 29/Jun/07 02:37 PM   Updated: 19/Oct/07 10:17 PM   Resolved: 19/Oct/07 10:17 PM
Component/s: Ant integration
Affects Version/s: None
Fix Version/s: 1.1-rc-2

Time Tracking:
Not Specified

File Attachments: 1. XML File build.xml (2 kB)



Keith Koski added a comment - 29/Jun/07 02:42 PM

oops, bug entered before I finished completing the form.
Anyway, see the attached Ant build.xml file. $ANT_HOME/lib contains the file groovy-all-1.1-BETA-1.jar
The basedir for the Ant project must contain a mysql jar file.


Paul King added a comment - 14/Jul/07 12:11 AM

What is your expectation with regard to this bug?

One option is improved documentation stating that you need to use the same classloader for the groovy taskdef and sql jar. Is this the intention? Or did you want some change to the assumptions about default classloaders?


Keith Koski added a comment - 14/Jul/07 11:43 AM

Ideally, a change in the assumptions about classloaders. However, I do have a workaround, so improved documentation would suffice.


Paul King added a comment - 19/Oct/07 10:17 PM

Changed the Ant Troubleshooting wiki page to describe this issue a little bit.