Hello, excuse me for my English:
I`am in troubles. I need that Somebody tell me how write script for create ftp task, dynamic. My idea: <project name="squares" default="main" basedir="."> <!--THIS FILE FILE CONTAINS VARIABLES FOR CREATE TASK FTP --> <property file = "c:\java\ftp.properties"/> <target name="sub"> <ftp id="ftp"></ftp> </target> <target name="createftp"> <script language="javascript"> <![CDATA[ for (i=1; i<=${ftp.hosts}; i++) { ftp = squares.createTask("ftp"); main.addTask(ftp); ftp.setServer( ${server[i]} ); ftp.Userid( ${userid[i]} ); ftp.pass( ${pass[i]} ); ftp.remotedir( ${ftp.remotedir[i]}); sub.execute() } ]]> </script> </target> Excuse for my bad script. Where are the methods of object ftp?? Are correct the methods ftp.Userid ftp.pass etc. ??? Thank you very much. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>