ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik" <karth...@xius.org>
Subject 1 Questions in ANT
Date Fri, 03 Mar 2006 07:53:45 GMT
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


Mime
View raw message