This commit is contained in:
Michael Pearce 2018-01-23 17:08:20 +00:00
commit 81324e0ca6
1 changed files with 3 additions and 6 deletions

View File

@ -237,11 +237,10 @@ public class ArtemisCreatePlugin extends ArtemisAbstractPlugin {
throw new MojoExecutionException(e.getMessage(), e);
}
PrintStream commandLineStream = new PrintStream(outputStream);
commandLineStream.println("# These are the commands used to create " + instance.getName());
commandLineStream.println(getCommandline(listCommands));
try (PrintStream commandLineStream = new PrintStream(outputStream)) {
commandLineStream.println("# These are the commands used to create " + instance.getName());
commandLineStream.println(getCommandline(listCommands));
try {
Artemis.execute(home, null, listCommands);
if (configuration != null) {
@ -266,8 +265,6 @@ public class ArtemisCreatePlugin extends ArtemisAbstractPlugin {
}
}
commandLineStream.close();
FileUtil.makeExec(commandLine);
getLog().info("###################################################################################################");