user802232
user802232

Reputation: 2611

An ANT script to sync local with a remote version

Please, excuse my complete lack of experience with ANT.

I am looking for a script that basically compares the modification date of every .class file in a given local build, with that of its corresponding copy in a remote directory (server or sth). If a local file has recently been modifed, it just replaces the remote .class file with the local one.

I know that there are a lot of scripts for building war files and redeploying the whole application, and this is clearly what I don't want. Going through that every time for just a few lines of code being changed doesn't make any sense

Even if you can't point out a whole script, please give me some directions to look at. I know that ANT is pretty powerful so something like that should be a piece of cake, for even a newbie to write, right ?

Upvotes: 0

Views: 330

Answers (1)

JB Nizet
JB Nizet

Reputation: 691635

The copy task does exactly that.

Upvotes: 1

Related Questions