Skip to content

Commit

Permalink
Merge pull request #620 from rosensilva/main
Browse files Browse the repository at this point in the history
fix server plugin path issue
  • Loading branch information
sajithaliyanage authored Feb 3, 2021
2 parents 7a14a68 + edd684b commit 3a77d86
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ public class PlatformEarlyStartUpHandler implements IStartup {
private static IIntegrationStudioLog log = Logger.getLog(Activator.PLUGIN_ID);
// relative path to where microesb is packaged
public static final String MICRO_ESB_PATH = "runtime" + File.separator + "microesb";
public static final String MICRO_ESB_EXTRACT_PATH = "runtime";
public static final String MICRO_ESB_VERSION_PROPERTIES_FILE = "runtime" + File.separator +"version.properties";
public static final String INTEGRATION_STUDIO_HOME_MAC = "/Applications/IntegrationStudio.app/Contents/Eclipse";

Expand Down Expand Up @@ -144,9 +145,9 @@ public void earlyStartup() {

File esbSeverDestination = null;
if ((OS.indexOf("mac") >= 0) || (OS.indexOf("darwin") >= 0)) {
esbSeverDestination = new File(INTEGRATION_STUDIO_HOME_MAC + File.separator + MICRO_ESB_PATH);
esbSeverDestination = new File(INTEGRATION_STUDIO_HOME_MAC + File.separator + MICRO_ESB_EXTRACT_PATH);
} else {
esbSeverDestination = new File(MICRO_ESB_PATH);
esbSeverDestination = new File(MICRO_ESB_EXTRACT_PATH);
}
if (esbSeverDestination.exists()) {
File backupDir = new File(esbSeverDestination.getAbsolutePath().concat("_old"));
Expand Down

0 comments on commit 3a77d86

Please sign in to comment.