Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-08 Thread Steve Amerige
Hi Nicolas and all, On 8/7/2012 3:58 PM, Nicolas Lalevée wrote: Then, only speaking for myself and not for the Ant committers, I don't think "reverse" behavior to be ugly. We gain a fine control of the classloading, just like we do while using inheritance in Java. And considering Ant backward

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-07 Thread Nicolas Lalevée
Le 7 août 2012 à 21:15, Steve Amerige a écrit : > On 8/6/2012 9:04 AM, Nicolas Lalevée wrote: >> There is a possible hack I guess. >> There is a deprecated option to typedef : reverseLoader. If set to true, the >> classloader inheritance is inverted. >> I don't know why it is deprecated but sure

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-07 Thread Steve Amerige
On 8/6/2012 9:04 AM, Nicolas Lalevée wrote: There is a possible hack I guess. There is a deprecated option to typedef : reverseLoader. If set to true, the classloader inheritance is inverted. I don't know why it is deprecated but surely for a good reason, so use it at your own risk The code s

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-06 Thread Peter West
Failing that, define propertysets with the properties you need to propagate, then invoke ant via a java task with a fork, and the set of environment variables you want (including classpath.) Peter West "...you will find rest for your souls. For my yoke is easy, and my burden is light." On 06/

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-06 Thread Nicolas Lalevée
Le 6 août 2012 à 14:37, Steve Amerige a écrit : > Some more info on this problem: > > The issue is is a ClassLoader delegation model > > problem. If the classpath has in it a path to Groovy 1.7.10 (as it does), > then even

Re: How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-06 Thread Steve Amerige
Some more info on this problem: The issue is is a ClassLoader delegation model problem. If the classpath has in it a path to Groovy 1.7.10 (as it does), then even if I explicitly add the classpath in Ant as I do below, the

How to Execute Groovy 2.0 Code from an Ant File that has Groovy 1.7 Classpath

2012-08-03 Thread Steve Amerige
Hi all, My Ant script is being called with an environment including the classpath that includes the folder containing the groovy-all-1.7.10.jar file. I want to execute Groovy 2.0 code from my Ant script. I cannot change any aspect of how my Ant script is called. I must limit my solution to