ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark.rus...@pncbank.com
Subject copy only if newer
Date Wed, 16 Jul 2003 18:54:12 GMT

I have a set of files in /opt/app/foo and a staging area ~/stage.
the files in /opt/app/foo are owned by admin
the files in ~/stage are owned by user

via scp user can copy the files to /opt/app/foo under the admin id

I need an ant task to build a fileset that will only give me the files that
are out of date.

e.g.

/opt/app/foo
convert.xml    07 jul 2003 1200
build.xml 07 jul 2003 1300
bar,xml        06 jul 2003 1300

~/stage
convert.xml    07 jul 2003 1230
build.xml 07 jul 2003 1300
bar.xml        07 jul 2003 1300

the file set should only have convert.xml  in it

I want to execute the command scp ~/stage/comvert.xml ~/stage/bar.xml
/opt/app/foo

Mark Russell
PNC
412-768-9603

Mime
View raw message