ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject cvs commit: ant/src/etc/testcases/taskdefs/optional/net ftp.xml
Date Wed, 06 Aug 2003 10:27:15 GMT
antoine     2003/08/06 03:27:15

  Modified:    src/etc/testcases/taskdefs/optional/net ftp.xml
  Log:
  use user.name as default for ftp.user
  new target for testing scanning a file which is a symbolic link
  
  Revision  Changes    Path
  1.2       +7 -16     ant/src/etc/testcases/taskdefs/optional/net/ftp.xml
  
  Index: ftp.xml
  ===================================================================
  RCS file: /home/cvs/ant/src/etc/testcases/taskdefs/optional/net/ftp.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ftp.xml	4 Aug 2003 22:23:57 -0000	1.1
  +++ ftp.xml	6 Aug 2003 10:27:15 -0000	1.2
  @@ -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>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message