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
|
<?xml version="1.0" encoding="UTF-8"?>
<project name="ChownTaskTest" default="main">
<property name="tmp.dir" value="tmp"/>
<target name="clean">
<delete dir="${tmp.dir}"/>
</target>
<target name="testChangeGroup">
<mkdir dir="${tmp.dir}"/>
<touch file="${tmp.dir}/chowntestA"/>
<touch file="${tmp.dir}/chowntestB"/>
<chown user="${targetuser}">
<fileset dir="${tmp.dir}">
<include name="chowntestB"/>
</fileset>
</chown>
</target>
<target name="testChangeGroupDirSet">
<mkdir dir="${tmp.dir}/A"/>
<mkdir dir="${tmp.dir}/B"/>
<touch file="${tmp.dir}/A/chowntest"/>
<touch file="${tmp.dir}/B/chowntest"/>
<chown user="${targetuser}">
<dirset dir="${tmp.dir}">
<include name="B"/>
</dirset>
</chown>
</target>
</project>
|