|
Ant example source code file (poly.xml)
The poly.xml source code
<project name="test" basedir=".">
<property name="c" value="org.apache.tools.ant.types.PolyTest"/>
<path id="test-c">
<pathelement location="../../../../build/testcases" />
<pathelement path="${java.class.path}" />
</path>
<target name="init">
<typedef loaderref="poly" classpathref="test-c"
name = "myfileset" classname="${c}$MyFileSet"/>
<typedef loaderref="poly" classpathref="test-c"
name = "mypath" classname="${c}$MyPath"/>
<typedef loaderref="poly" classpathref="test-c"
name = "mytask" classname="${c}$MyTask"/>
</target>
<target name="fileset" depends="init">
<mytask>
<fileset dir="."/>
</mytask>
</target>
<target name="fileset-ant-type" depends="init">
<mytask>
<fileset ant-type="myfileset" dir="."/>
</mytask>
</target>
<target name="path" depends="init">
<mytask>
<path path="."/>
</mytask>
</target>
<target name="path-ant-type" depends="init">
<mytask>
<path ant-type="mypath" path="."/>
</mytask>
</target>
</project>
Other Ant examples (source code examples)Here is a short list of links related to this Ant poly.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.