Browse Source

use user.name as default for ftp.user

new target for testing scanning a file which is a symbolic link


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275034 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 22 years ago
parent
commit
95cc5a59b5
1 changed files with 7 additions and 16 deletions
  1. +7
    -16
      src/etc/testcases/taskdefs/optional/net/ftp.xml

+ 7
- 16
src/etc/testcases/taskdefs/optional/net/ftp.xml View File

@@ -1,26 +1,13 @@
<project name="ftp-test" basedir=".">
<property file="../../../../../../ftp.properties"/>
<property environment="env"/>
<property name="ftp.user" value="${user.name}"/>
<property name="ftp.host" value="localhost"/>
<property name="ftp.port" value="21" />
<property name="ftp.password" value="sunshine" />
<property name="tmp.dir" location="tmp"/>
<property name="ftp.filesep" value="/"/>
<condition property="windows">
<os family="windows"/>
</condition>
<condition property="unix">
<os family="unix" />
</condition>
<target name="init.unix" if="unix">
<property name="ftp.user" value="${env.LOGNAME}"/>
</target>
<target name="init.windows" if="windows">
<property name="ftp.user" value="${env.USERNAME}"/>
</target>
<target name="init" depends="init.unix,init.windows">
</target>
<target name="setup" depends="init">
<target name="setup">
<mkdir dir="${tmp.dir}/alpha/beta/gamma"/>
<touch file="${tmp.dir}/alpha/beta/gamma/gamma.xml"/>
<touch file="${tmp.dir}/alpha/beta/beta.xml"/>
@@ -32,11 +19,15 @@
<target name="cleanup">
<delete dir="${tmp.dir}" quiet="true"/>
</target>

<target name="symlink-setup" depends="setup">
<mkdir dir="${tmp.dir}/epsilon/gamma"/>
<delete dir="${tmp.dir}/alpha/beta"/>
<symlink link="${tmp.dir}/alpha/beta" resource="${tmp.dir}/epsilon"/>
<touch file="${tmp.dir}/alpha/beta/gamma/gamma.xml"/>
</target>
<target name="symlink-file-setup" depends="setup">
<delete file="${tmp.dir}/alpha/beta/gamma/gamma.xml"/>
<symlink link="${tmp.dir}/alpha/beta/gamma/gamma.xml"
resource="${tmp.dir}/alpha/beta/beta.xml"/>
</target>
</project>

Loading…
Cancel
Save