SCP files to a server using ANT

This is quite easy using the optional ‘scp’ task.

Under windows, this depends on a java implementation of ssh which is found here

Then do something like the following:

<!-- On windows, this needs an optional java implementation of ssh which you can get from :
	 download it, build it and then pop the jar file into your ant lib folder 
<target name="deploy" description="pushes jar to the test server">
    <scp trust="true" file="${target.dist.jarfile}"