Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (36 sloc) 1.208 kb
<?xml version="1.0" encoding="UTF-8"?>
<project name="CopyTaskTest" default="main">
<property name="tmp.dir" value="tmp"/>
<fileset dir="vendor" id="vendor">
<include name="*"/>
</fileset>
<target name="setup">
</target>
<target name="clean">
<delete dir="${tmp.dir}"/>
</target>
<target name="testCopyDanglingSymlink">
<mkdir dir="${tmp.dir}/base"/>
<symlink target="${tmp.dir}/base/all" link="${tmp.dir}/base/dangling_symlink"/>
<copy todir="${tmp.dir}/new">
<fileset dir="${tmp.dir}/base">
<include name="*"/>
</fileset>
</copy>
<delete dir="${tmp.dir}/base"/>
<delete dir="${tmp.dir}/new"/>
</target>
<target name="testCopySymlinkPreserveLastModifiedShouldCopyTarget">
<mkdir dir="${tmp.dir}/base"/>
<mkdir dir="${tmp.dir}/new"/>
<echo file="${tmp.dir}/base/x" message="Testmessage"/>
<symlink target="x" link="${tmp.dir}/base/y"/>
<copy todir="${tmp.dir}/new" preserveLastModified="true">
<filelist dir="${tmp.dir}/base" files="y,x"/>
</copy>
<filesize file="${tmp.dir}/new/x" propertyname="test.filesize"/>
<delete dir="${tmp.dir}/base"/>
<delete dir="${tmp.dir}/new"/>
</target>
<target name="main"/>
</project>
Jump to Line
Something went wrong with that request. Please try again.