ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik" <karth...@xius.org>
Subject Delima to use or not to use build.xml
Date Tue, 14 Feb 2006 11:00:47 GMT
Hi Form


  How to write the equivalent of the "FTP_UPLOAD" Task by using ANT API
("org.apache.tools.ant.*")


<target name="FTP_UPLOAD" >

 <ftp server="${ftIp}"
   remotedir="${ftpremotedir}"
   userid="${ftpid}"
   password="${ftppas}"
   separator="\"
   action="put">
  <fileset dir="${src.dir}">
   <include name="**/*"/>
   </fileset>
  </ftp>
</target>


Mr McConell the site http://www.dpml.net/depot u reffred is probably
down,and timing out on my FireFox Browser.


Please somebody help he.


with regards
Karthik


-----Original Message-----
From: Stephen McConnell [mailto:mcconnell@dpml.net]
Sent: Tuesday, February 14, 2006 1:39 PM
To: 'Ant Users List'
Subject: RE: Delima to use or not to use build.xml



> 1)How to set the Target name for ="TgtName"
>
>   "<property name="TgtName" value="$(target}"/>"
>
>    in property  Using ANT API ("org.apache.tools.ant.*")


http://api.dpml.net/ant/1.6.5/org/apache/tools/ant/Project.html#setProperty(
java.lang.String,%20java.lang.String)


> 2)How to execute the argumented target using ANT API's.

Take a look at some examples of some systems that handle embedded ant.  The
DPML Depot system is the one I use (http://www.dpml.net/depot) but there are
other more prominent/well-known examples on the net that you should probably
dig into.

Cheers, Steve.



---------------------------------------------------------------------
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