I am working with ANT ‘SCP’ command but it doesn’t retain the permission on SCP. So I thought I would use SCP on unix machine as executable as work around but I am wondering how I set the password on exec command? Any ideas on How work on it?
<exec executable="scp" failonerror="true">
<arg value="-r"/>
<arg value="tcbuild@pghlinux6:${checkoutDir}/Package/"/>
<arg value="/licregs.140"/>
</exec>
I got away with this one in ANT. By Using sshexec to remotely change permissions and using SCP command.