Skip to content

Commit

Permalink
added setexecutable when unpacking jar files (#218)
Browse files Browse the repository at this point in the history
fixed issue #217
  • Loading branch information
jlanka11566 committed Sep 9, 2020
1 parent 8742898 commit e08dbe0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ private String getTerraformCommand(String command) {

private String getTFExecutable() {
File tfwrapper = new File(".tf/tfw");
if (tfwrapper.exists()) {
tfwrapper.setExecutable(true);
}
return tfwrapper.exists() ? tfwrapper.getAbsolutePath().replaceAll("[\\\\]","/") : "terraform";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ public void execute() throws MojoExecutionException, MojoFailureException {
} catch (IOException e) {
throw new MojoExecutionException(String.format("Unable to create %s!", tfwFileName), e);
}
tfwFile.setExecutable(true);
}
}


/*
* Here we check for command line arguments (if any) and update the properties file
*/
Expand Down

0 comments on commit e08dbe0

Please sign in to comment.