I need to copy the zip files from local machine and paste in remote machine and unzip those files in remote machine.
I know the first part can be done using the scp (copy zip files from local and paste in remote machine) but how to do the second part using ant?
Thanks in advance
You could use the sshexec task to call the command line
unzipcommand on the remote machine (assuming the remote machine has unzip installed).The
unzipcommand can take a number of other options, see its man page for full details. For example the-joption will ignore any directory hierarchy inside the zip files and put all the extracted files directly in the target directory. And-owill force overwrite existing files in the target directory without prompting.