Line | |
---|
1 | <project default="dont-run-this">
|
---|
2 |
|
---|
3 | <property name="build.dir" value="build"/>
|
---|
4 |
|
---|
5 | <target name="dont-run-this">
|
---|
6 | <fail>This build file is supposed to be run by a Unit test</fail>
|
---|
7 | </target>
|
---|
8 |
|
---|
9 |
|
---|
10 | <target name="testPropertyExpansion">
|
---|
11 | <sequential>
|
---|
12 | <property name="foo" value="it worked"/>
|
---|
13 | <echo message="As attribute: ${foo}"/>
|
---|
14 | <echo>As nested text: ${foo}</echo>
|
---|
15 | </sequential>
|
---|
16 | </target>
|
---|
17 |
|
---|
18 | <target name="testTaskdef">
|
---|
19 | <mkdir dir="${build.dir}"/>
|
---|
20 | <javac srcdir="containersrc" destdir="${build.dir}" debug="on"/>
|
---|
21 |
|
---|
22 | <sequential>
|
---|
23 | <taskdef name="sseq" classpath="${build.dir}" classname="test.SpecialSeq"/>
|
---|
24 | <sseq>
|
---|
25 | <fileset dir="."/>
|
---|
26 | <property name="foo" value="it worked"/>
|
---|
27 | <echo message="As attribute: ${foo}"/>
|
---|
28 | <echo>As nested text: ${foo}</echo>
|
---|
29 | <nested message="As nested task: ${foo}"/>
|
---|
30 | </sseq>
|
---|
31 | </sequential>
|
---|
32 | </target>
|
---|
33 |
|
---|
34 | <target name="testCaseInsensitive">
|
---|
35 | <taskdef name="Prattle" classname="org.apache.tools.ant.taskdefs.Echo"/>
|
---|
36 | <taskdef name="Seq"
|
---|
37 | classname="org.apache.tools.ant.taskdefs.Sequential"/>
|
---|
38 | <Prattle>hello</Prattle>
|
---|
39 | <Seq>
|
---|
40 | <Prattle> world</Prattle>
|
---|
41 | </Seq>
|
---|
42 | </target>
|
---|
43 |
|
---|
44 | <target name="cleanup">
|
---|
45 | <delete dir="${build.dir}"/>
|
---|
46 | </target>
|
---|
47 |
|
---|
48 | </project> |
---|
Note:
See
TracBrowser
for help on using the repository browser.