|
Ant example source code file (typeadapter.xml)
The typeadapter.xml source code<?xml version="1.0"?> <project name="test" basedir="." default="invalid"> <property name="testcases.dir" location="../../../../build/testcases"/> <path id="testclasses"> <pathelement location="${testcases.dir}" /> <pathelement path="${java.class.path}" /> </path> <target name="taskadapter"> <typedef name="myexec" classname="org.apache.tools.ant.taskdefs.TypeAdapterTest$MyExec" classpathref="testclasses" adapter="org.apache.tools.ant.TaskAdapter"/> <myexec/> </target> <target name="runadapter"> <typedef name="myrunnable" classname="org.apache.tools.ant.taskdefs.TypeAdapterTest$MyRunnable" classpathref="testclasses" adapter="org.apache.tools.ant.taskdefs.TypeAdapterTest$RunnableAdapter"/> <myrunnable/> </target> <target name="runadaptererror"> <typedef name="myrunnable" classname="org.apache.tools.ant.taskdefs.TypeAdapterTest$MyExec" classpathref="testclasses" adapter="org.apache.tools.ant.taskdefs.TypeAdapterTest$RunnableAdapter"/> <myrunnable/> </target> <target name="delay"> <typedef name="mytask" classname="org.apache.tools.ant.taskdefs.TypeAdapterTest$MyTask" classpathref="testclasses" onerror="ignore"/> <mytask/> </target> <target name="onerror.report"> <typedef name="mytask" classname="org.apache.tools.ant.taskdefs.TypeAdapterTest$MyTaskNotPresent" classpathref="testclasses" onerror="report"/> </target> <target name="onerror.ignore"> <typedef name="mytask" classname="org.apache.tools.ant.taskdefs.TypeAdapterTest$MyTaskNotPresent" classpathref="testclasses" onerror="ignore"/> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant typeadapter.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.