ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Setting classpath for nested ant call
Date Mon, 08 Sep 2008 01:23:10 GMT

use the ant task supplying the antfile to indicate location of build.xml and target
<ant antfile="subproject/subbuild.xml" target="compile"/>http://ant.apache.org/manual/CoreTasks/ant.html


Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission. 


> Date: Fri, 5 Sep 2008 08:00:22 -0700
> From: mattyearle@hotmail.com
> To: user@ant.apache.org
> Subject: Setting classpath for nested ant call
> 
> 
> 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!?
> -- 
> View this message in context: http://www.nabble.com/Setting-classpath-for-nested-ant-call-tp19333163p19333163.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

_________________________________________________________________
See how Windows Mobile brings your life together—at home, work, or on the go.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message