Line | |
---|
1 | <?xml version="1.0"?>
|
---|
2 |
|
---|
3 | <project name="test" basedir="." default="invalid">
|
---|
4 |
|
---|
5 | <target name="invalid">
|
---|
6 | <fail>This file should only be run via a testcase</fail>
|
---|
7 | </target>
|
---|
8 |
|
---|
9 | <target name="empty">
|
---|
10 | <typedef />
|
---|
11 | </target>
|
---|
12 |
|
---|
13 | <target name="noClassname">
|
---|
14 | <typedef name="dummy" />
|
---|
15 | </target>
|
---|
16 |
|
---|
17 | <target name="noName">
|
---|
18 | <typedef classname="org.example.types.TypedefTestType">
|
---|
19 | <classpath refid="testclasses" />
|
---|
20 | </typedef>
|
---|
21 | </target>
|
---|
22 |
|
---|
23 | <target name="classNotFound">
|
---|
24 | <typedef name="" classname="oops"/>
|
---|
25 | </target>
|
---|
26 |
|
---|
27 | <path id="testclasses">
|
---|
28 | <pathelement location="../../../../build/testcases" />
|
---|
29 | <pathelement path="${java.class.path}" />
|
---|
30 | </path>
|
---|
31 |
|
---|
32 | <typedef name="global"
|
---|
33 | classname="org.example.types.TypedefTestType">
|
---|
34 | <classpath refid="testclasses" />
|
---|
35 | </typedef>
|
---|
36 |
|
---|
37 | <target name="testGlobal">
|
---|
38 | <global id="global" />
|
---|
39 | </target>
|
---|
40 |
|
---|
41 | <target name="testLocal">
|
---|
42 | <typedef name="localtype"
|
---|
43 | classname="org.example.types.TypedefTestType">
|
---|
44 | <classpath refid="testclasses" />
|
---|
45 | </typedef>
|
---|
46 | <localtype id="local" />
|
---|
47 | </target>
|
---|
48 |
|
---|
49 | <target name="double-notpresent">
|
---|
50 | <typedef name="mytask" classname="notpresent" onerror="ignore"/>
|
---|
51 | <typedef name="mytask" classname="notpresent" onerror="ignore"/>
|
---|
52 | <typedef name="mytask" classname="org.apache.tools.ant.taskdefs.Echo"
|
---|
53 | onerror="ignore"/>
|
---|
54 | <mytask>hi</mytask>
|
---|
55 | </target>
|
---|
56 | </project> |
---|
Note:
See
TracBrowser
for help on using the repository browser.