Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Very Bad use of Ant...

Very Bad use of Ant...

2006-08-28       - By Dominique Devienne
Reply:     1     2     3     4     5     6     7     8     9  

You can always <java fork="true"> the other Ant, and since they live
in different processes and VMs, they can co-exist peacefully. I think
there's an example somewhere that demonstrates how to call Ant using
<java>. --DD

On 8/28/06, Dan McFadyen <danm@(protected)> wrote:
> Hello,
>
> I am about to ask how to do something that will sound... very very ugly...
>
> Is there anyway to run a different version of Ant from within an Ant script?
> I read the faq and found the explantation of the:
>
>     [exec] java.lang.NoClassDefFoundError:
> org/apache/tools/ant/launch/Launcher
>     [exec] Exception in thread "main"
>
> I have gone to the 2 different directories I need to run it, and I can run
> each fine (one defined in Env variables, other using absolute path to bin
> dir).
>
> But... is there any way to not get that?... Or am I stuck with a manual step
> if I need 2 versions of Ant to play nice?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.