|
- <?xml version="1.0"?>
-
- <project name="concat-test" basedir="." default="test1">
-
- <property name="tmp.file" value="concat.tmp" />
- <property name="tmp.file.2" value="concat.tmp.2" />
-
- <property name="world" value="World" />
-
- <target name="test1">
- <concat>
- </concat>
- </target>
-
- <target name="test2">
- <concat destfile="">Hello, ${world}!</concat>
- </target>
-
- <target name="test3">
- <concat destfile="${tmp.file}">Hello, ${world}!</concat>
- </target>
-
- <target name="test4">
- <concat destfile="${tmp.file.2}">
- <fileset dir="${basedir}" includes="${tmp.file}" />
- <filelist dir="${basedir}" files="${tmp.file},${tmp.file}" />
- </concat>
- </target>
-
- <target name="test5">
- <concat>Hello, ${world}!</concat>
- </target>
-
- <target name="test6">
- <concat destfile="TESTDEST" append="true">
- <filelist dir="${basedir}" files="thisfiledoesnotexist"/>
- </concat>
- <available file="TESTDEST" property="TESTDEST.was.created"/>
- <fail message="TESTDEST created for nonexistant files"
- if="TESTDEST.was.created"/>
- </target>
-
- <target name="testConcatNoNewline">
- <concat>
- <fileset dir="concat-input"/>
- </concat>
- </target>
-
- <target name="testConcatNoNewlineEncoding">
- <concat encoding="ASCII">
- <fileset dir="concat-input"/>
- </concat>
- </target>
-
- </project>
|