Skip to content

Commit 836b970

Browse files
committed
FISH-6772 : replacing file & transformer version fixed
1 parent 7177c82 commit 836b970

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

  • bundles/fish.payara.eclipse.tools.server/src/fish/payara/eclipse/tools/server/handlers

bundles/fish.payara.eclipse.tools.server/src/fish/payara/eclipse/tools/server/handlers/MigrateHandler.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class MigrateHandler extends AbstractHandler {
4343

4444
public static final String PAYARA_TRANSFORMER = "fish.payara.transformer";
4545
public static final String PAYARA_TRANSFORMER_MAVEN = "fish.payara.transformer.maven";
46-
public static final String PAYARA_TRANSFORMER_VERSION = "0.2.15";
46+
public static final String PAYARA_TRANSFORMER_VERSION = "0.2.14";
4747

4848
@Override
4949
public Object execute(ExecutionEvent event) throws ExecutionException {
@@ -80,7 +80,7 @@ public Object execute(ExecutionEvent event) throws ExecutionException {
8080
if ("".equals(destinationPath)) return null;
8181
int exitCode = runMvnCommand(srcProjectPath, srcPath, destinationPath);
8282
if (exitCode == 0) {
83-
MessageDialog.openInformation(shell, "Success", "Project " + destinationPath + " created successfully.");
83+
MessageDialog.openInformation(shell, "Success", (isFile ? "File " : "Project ") + destinationPath + " created successfully.");
8484
} else {
8585
MessageDialog.openError(shell, "Error", "Maven command failed with exit code " + exitCode + ".");
8686
}
@@ -98,16 +98,7 @@ private String chooseDestinationPath(String srcPath, String name, boolean isFile
9898
String selectedDirectory = dialog.open();
9999
if (selectedDirectory != null) {
100100
if (isFile) {
101-
String targetDir = selectedDirectory + "/jakartaee10/";
102-
try {
103-
final Path path = Paths.get(targetDir);
104-
if (!Files.exists(path)) {
105-
Files.createDirectories(path);
106-
}
107-
return targetDir + name;
108-
} catch (IOException e) {
109-
throw new RuntimeException(e);
110-
}
101+
return selectedDirectory + "/" + name;
111102
}
112103
return selectedDirectory + "/" + name + "-JakartaEE10";
113104
}

0 commit comments

Comments
 (0)