You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Karthik <ka...@xius.org> on 2006/03/03 08:53:45 UTC

1 Questions in ANT

Hi form

  I have 1 Questions

  1)I have a "build.xml" file with  many normal targets,
    But for LINUX - OS with same build.xml , Do i need to Add the FTP tasks
for EACH of the targets
    or is there an feature avaliable in ANT.

    ex:-

      Source OS using ANT to Copy is         : "windows"
      Destination OS of each target may be   : "windows  or Linux Systems"


      build.xml is as follows....

      <target name="01JAN2005">
  	<copy todir="${dest.dir}">
      <fileset dir="${src.dir}/*"/>
  	</copy>
 	</target>

      <target name="15JAN2005" depends="15JAN2005">
    	<copy todir="${dest.dir}">
    	<fileset dir="${src.dir}/*"/>
    	</copy>
      </target>

        ----


      <target name="01JAN2005" >
	  <fileset dir="${libs}">
	  <include name="**/*.jar"/>
	  </fileset>
	  <ftp server="${ftptype}"
	       remotedir="${ftpremotedir}"
	       userid="${ftpid}"
	       password="${ftppas}"
	       separator="/"
	       action="put">

	     <fileset dir="${src.dir}">
		<include name="**/*"/>
	      </fileset>
	   </ftp>
	</target>



      <target name="15JAN2005" >
	  <fileset dir="${libs}">
	  <include name="**/*.jar"/>
	  </fileset>
	  <ftp server="${ftptype}"
	       remotedir="${ftpremotedir}"
	       userid="${ftpid}"
	       password="${ftppas}"
	       separator="/"
	       action="put">

	     <fileset dir="${src.dir}">
		<include name="**/*"/>
	      </fileset>
	   </ftp>
	</target>


Please some body help me



with regards
Karthik





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