You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2005/08/22 12:13:47 UTC

Sync inside scp/ssh ?

Hi,

scenario = a ClearCase snapshotview resides on unix.

workflow right now =

- the snapshotview is updated -> *.updt logfile is written
- a special java class parses the logfile for updated/new/unloaded
  files and writes 2 files -> files to be copied and files to be deleted
- via foreach task every file out of this two generated files is
  either copied to or deleted on several remote servers (ssh)

Question =

it would be a lot easier to do with <sync>, if possible

As there's no example available in the ant manual :

Is it possible to use the sync task with remote targets or
does this only work local ?

Regards, Gilbert

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


Re: Sync inside scp/ssh ?

Posted by Dominique Devienne <dd...@gmail.com>.
Only local. I even initially called it <lsync>, for local sync to
contrast with Unix' rsync command, but Stefan renamed it <sync> when
he integrated it to Ant.

Plus most of the job done by sync is to actually figure out what
changed between the two trees, which you already get thru your custom
parsing of the CC log file. --DD

PS: Better to use Ant-Contrib's <for> instead of <foreach>. You avoid
the equivalent to the <antcall> for each iteration, which is usually
faster and takes less memory.

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