Browse Source

Add some tests for fail and update the taskdef test for new package hierarchy

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270262 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 23 years ago
parent
commit
ac928606f5
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      proposal/myrmidon/src/make/sample.ant

+ 18
- 1
proposal/myrmidon/src/make/sample.ant View File

@@ -40,7 +40,7 @@ Legal:
<target name="typedef-test">
<typedef name="log2"
type="task"
classname="org.apache.myrmidon.libs.core.Log"
classname="org.apache.antlib.core.Log"
lib="../../dist/lib/core.atl" />

<log2 message="Luke to Echo base. Can you hear me?"/>
@@ -99,6 +99,23 @@ Legal:

</target>

<target name="fail-test1">
<fail message="Build is failing"/>
</target>

<target name="fail-test2">
<fail message="Build is failing if prop X is set" if="x"/>
</target>

<target name="fail-test3">
<fail message="Build is failing unless prop X is set" unless="x"/>
</target>

<target name="fail-test4">
<fail>Some multiline fail
message.</fail>
</target>

<target name="ant1-tasklib-test">

<!--


Loading…
Cancel
Save