ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karthik" <karth...@xius.org>
Subject ANT FTP TASK
Date Mon, 06 Mar 2006 06:20:29 GMT
Hi form

  I found this piece of code on the web and am struck with the API

  1)Would like to know how to add files to "addFileSet"

   for thr code below.


  public void setCopXinTask(String fromSrc,String toDirName) {
		Project project = createProject();
		FTP ftp = new FTP();
		
		ftp.setServer("192.168.150.120");
		ftp.setRemotedir("/home/projectt/karthik");
		ftp.setPort(22);
		ftp.setUserid("projectt");
		ftp.setPassword("abc1234");		
	
		
            //?? how to add files from source to filset 	
		
		ftp.addFileset( ???? );		
		ftp.execute();
	}



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