ANT SSH task for copying file on Linux Server


 
 <!-- Copy files to or from a remote server using SSH.-->
  <target name="SSH" description="used for copying bla.ear file on remote LINUX server using SSH">
    <echo message="deploying bla.ear file on server IP: ${serverIP}"/>
   <scp file="${fileLocationWillBeHere}" todir="root@${serverIPwillBeHere}:/tmp" password="passwordWillBeHere" trust="true"/>
  </target>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s