|
Ant example source code file (subant.xml)
The subant.xml source code<?xml version="1.0"?> <project name="subant-test" basedir="." default="testgenericantfile"> <target name="testnodirs" depends="tearDown"> <subant genericantfile="subant/genericsubant.xml"> <dirset dir="." includes="subant-test*"/> </subant> </target> <target name="testgenericantfile"> <subant genericantfile="subant/genericsubant.xml"> <dirset dir="subant" includes="subant-test*"/> </subant> </target> <target name="testantfile"> <subant antfile="mysubant.xml"> <dirset dir="." includes="subant/subant-test*"/> </subant> </target> <target name="multipleTargets"> <subant antfile="mysubant.xml"> <dirset dir="." includes="subant/subant-test*"/> <target name="one"/> <target name="two"/> </subant> </target> <target name="multipleTargetsOneDoesntExist_FOEfalse"> <subant antfile="mysubant.xml" failonerror="false"> <dirset dir="." includes="subant/subant-test*"/> <target name="one"/> <target name="three"/> </subant> </target> <target name="multipleTargetsOneDoesntExist_FOEtrue"> <subant antfile="mysubant.xml" failonerror="true"> <dirset dir="." includes="subant/subant-test*"/> <target name="one"/> <target name="three"/> </subant> </target> <target name="tearDown"> <!-- nothing to do --> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant subant.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.