Java Mailing List Archive

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

Home » Ant Users List »

Setting classpath for nested ant call

merlin_the_happy_pig

2008-09-05

Replies: Find Java Web Hosting

Author LoginPost Reply

Ant newbie here. I need to call another ant task in a different build file,
so I do:

<project name...
<target name...
  <ant dir= antfile= target= inheritRefs="true" inheritAll="true"
...

The problem is is that this nested ant call fails because the classpath is
wrong. Normally this target is called after a setenv.bat file has been
called, which generates the correct classpath. I would like to do something
like:

<project name...
<classpath>
  <!- add all libs needed to classpath -->
<target name...
  <!-- inherit this correct classpath -->
  <ant dir= antfile= target= inheritRefs="true" inheritAll="true"


I can't find a way of doing this!?
--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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.