You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Robert Koberg <ro...@koberg.com> on 2004/08/18 00:11:46 UTC

programmatically using a fileset and ModifiedSelector

Hi,

I want to scp some files using the ant scp task. I would also like to 
only transfer the files that have been modified. What is the best way to 
use the ModifiedSelector on a fileset?

Is it enough to do:

Fileset fileset = new Fileset();
fileset.setProject(projectObj);
fileset.addModified(new ModifiedSelector());
fileset.setDir(dirFile);

Is it the same as:

<fileset dir="some/dir">
  <modified/>
</fileset>

or does anything else need to be done to the ModifiedSelector object? 
Should something else be done to the ModifiedSelector object to make it 
/better/?

thanks,
-Rob

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