ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Koberg <...@koberg.com>
Subject programmatically using a fileset and ModifiedSelector
Date Tue, 17 Aug 2004 22:11:46 GMT
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


Mime
View raw message