Skip to content

Commit

Permalink
Fixed pack project.
Browse files Browse the repository at this point in the history
  • Loading branch information
Htoonlin authored and Htoonlin committed Nov 10, 2017
1 parent ba6b5f6 commit ccecc7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/sdm/ide/controller/MainController.java
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private void packProject(ActionEvent event) {
ClipboardContent content = new ClipboardContent();
content.putString(value);
clipboard.setContent(content);
AlertDialog.showInfo("Copied path : " + value);
AlertDialog.showInfo("Copied path of war file.");
});
dialog.start();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/sdm/ide/task/PackProjectTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected String call() throws Exception {
String command = mvnDir.getPath() + " " + Constants.IDE.MVN_PACK_COMMAND;
Process proc = Runtime.getRuntime().exec(command, null, projectDir);
InputStream istr = proc.getInputStream();
String result = projectDir.getPath() + File.pathSeparator + "target" + "master-api-2.2.war";
String result = projectDir.getPath() + File.pathSeparator + "target";
try (BufferedReader br = new BufferedReader(new InputStreamReader(istr))) {
String message;
while ((message = br.readLine()) != null) {
Expand Down

0 comments on commit ccecc7b

Please sign in to comment.