Try this :
<import file="${path_to_your_file}/_myBuild_.xml"/>
Is this item
helpful? yesno
Previous votes Yes: 0 No: 0
Re: Hi, Anybody know to to call another build.xml file within one build.xml ? Topic: Ant Robert Lybarger, Apr 4, 2007
There is a core ant task called "ant" which lets you run a build file. See the usual manual. There are a few limitations (IMO, long-standing bugs) with using it -- specifically a lot of your command line argument settings get thrown away in the sub-build. Still, if you aren't doing anything exotic, it should work okay.
Is this item
helpful? yesno
Previous votes Yes: 0 No: 0
<property name="appcMemory" value="256m"/>
</ant>
</target>
the above code will invoke a target appc in utilities.xml file from current xml's appc target with some properties like classpath and memory settings.
Is this item
helpful? yesno
Previous votes Yes: 0 No: 0