Skip to content

Commit

Permalink
Update FileManager.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestOrt authored Feb 11, 2018
1 parent a21efb4 commit b518968
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ public void runScript(Microservice microservice, String mavenBinaryLocation, Str
Runtime.getRuntime().exec("cmd /c start cmd.exe /K \""+commands+"\"");
}else{
if(microservice.getBuildTool().equals(BuildTools.MAVEN)){
mavenBinaryLocation = (mavenBinaryLocation != null && mavenBinaryLocation.trim().length() > 0) ? mavenBinaryLocation : mavenHomeLocation + "/bin";
new ProcessBuilder("sh", getSettingsFolder() + "/" + microservice.getId() + ".sh", mavenHomeLocation, mavenBinaryLocation, port, vmArguments).start();
}else{
Runtime.getRuntime().exec("chmod 777 "+microservice.getPomLocation()+"//gradlew");
Expand Down

0 comments on commit b518968

Please sign in to comment.