Browse Source

Add 2 (small) test files for import.

I still need to add the .java file and add tests for the
more advanced features.

PR:
Obtained from:
Submitted by:
Reviewed by:


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273685 13f79535-47bb-0310-9956-ffa450edef68
master
Costin Manolache 22 years ago
parent
commit
3920c91b46
2 changed files with 26 additions and 0 deletions
  1. +17
    -0
      src/etc/testcases/taskdefs/import.xml
  2. +9
    -0
      src/etc/testcases/taskdefs/imported.xml

+ 17
- 0
src/etc/testcases/taskdefs/import.xml View File

@@ -0,0 +1,17 @@
<project name="import-test" default="main" basedir=".">
<echo>Before import</echo>

<import file="imported.xml"/>

<echo message="After import"/>
<target name="import-init">
<echo message="In import-init" />
</target>

<target name="main" depends="imported">
<echo message="In main"/>
</target>


</project>

+ 9
- 0
src/etc/testcases/taskdefs/imported.xml View File

@@ -0,0 +1,9 @@
<project name="imported-test" default="imported" basedir=".">

<echo message="In imported top"/>
<target name="imported" depends="import-init" >
<echo message="In imported target" />
</target>

</project>

Loading…
Cancel
Save