ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Ashoff" <Oliver.Ash...@xtramind.com>
Subject AW: 1 Questions in ANT
Date Fri, 03 Mar 2006 09:31:42 GMT
Hi!

Using a macro may help.
See http://ant.apache.org/manual/ -> Ant Tasks -> Core Tasks -> MacroDef
 
Regards, Oliver

> -----Ursprüngliche Nachricht-----
> Von: Karthik [mailto:karthikn@xius.org] 
> Gesendet: Freitag, 3. März 2006 08:54
> An: user@ant.apache.org
> Betreff: 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
> 
> 

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


Mime
View raw message