1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="DefaultExcludesTest" default="do.nothing">
<target name="cleanup-excludes">
<defaultexcludes default="true"/>
</target>
<target name="test1">
<defaultexcludes echo="true"/>
</target>
<target name="test2">
<defaultexcludes default="true" add="foo" echo="true"/>
</target>
<target name="test3">
<defaultexcludes default="true" remove="**/CVS" echo="true"/>
</target>
<property name="input" value="defaultexcludestestinput" />
<property name="output" value="defaultexcludestest" />
<target name="setup">
<mkdir dir="${output}"/>
<touch mkdirs="true" file="${input}/.svn/entries"/>
</target>
<target name="clean">
<delete dir="${output}"/>
</target>
<target name="testCopyNoExplicitExcludes">
<copy todir="${output}">
<fileset dir="${input}"/>
</copy>
</target>
<target name="testCopyExplicitExcludes">
<copy todir="${output}">
<fileset dir="${input}" defaultexcludes="true"/>
</copy>
</target>
<target name="testCopyExplicitNoExcludes">
<copy todir="${output}">
<fileset dir="${input}" defaultexcludes="false"/>
</copy>
</target>
<target name="do.nothing" />
</project>
|