Jeff Storey
Jeff Storey

Reputation: 57212

groovy ant task

I'm using the groovy ant task to compile my groovy files, but it seems like groovy locks the jar file so it can't be moved, deleted, signed, etc. Has anyone run into this bug before and have a workaround? Seems weird that if I run the groovy ant task and compile to a jar file that groovy doesn't release that jar file.

thanks,

Jeff

Upvotes: 1

Views: 910

Answers (1)

Rich Seller
Rich Seller

Reputation: 84078

Does the file get released once the ant build is complete? If this is the case try setting fork="true" on the groovy task so that another JVM is created, rather than Groovy sharing Ant's JVM. This means once Groovy is complete the forked JVM will be disposed and the lock should be freed.

If the lock persists after the Ant build completes, could you provide a bit more detail on what you're doing with Groovy?

Upvotes: 1

Related Questions