mirror of https://github.com/apache/maven.git
PR: MNG-476
guarantee comands are executed in order git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@191256 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
60750dede2
commit
29439c710c
|
@ -139,14 +139,9 @@ public class ScpSiteDeployMojo
|
|||
|
||||
commandExecutor.put( zipFile, zipFile.getName() );
|
||||
|
||||
cmd = " cd " + basedir + ";" + unzipCommand + " " + zipFile.getName() + "\n";
|
||||
cmd = " cd " + basedir + ";" + unzipCommand + " " + zipFile.getName() + "; rm " + basedir + "/" + zipFile.getName();
|
||||
|
||||
commandExecutor.executeCommand( cmd );
|
||||
|
||||
String rmCommand = "rm " + basedir + "/" + zipFile.getName();
|
||||
|
||||
commandExecutor.executeCommand( rmCommand );
|
||||
|
||||
}
|
||||
catch ( Exception e )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue