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:[EMAIL PROTECTED] > Gesendet: Freitag, 3. März 2006 08:54 > An: [email protected] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
