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: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > _________________________________________________________________ See how Windows Mobile brings your life together—at home, work, or on the go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/