Skip to content

Commit

Permalink
onnly pass the workspace configuration when the workspace is new
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Bad Name authored and Kevin Bad Name committed Jun 28, 2024
1 parent 4b75be5 commit c69c62c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,7 @@ public void launch(File file, Button advanced) {
environment.putAll(env);
File settings=new File(ScriptingEngine.getWorkspace().getAbsolutePath()+delim()+"bowler-settings.epf");
File java=DownloadManager.getConfigExecutable("java8", null);
if(!settings.exists()) {
if(!wsDir.exists())
wsDir.mkdirs();
if(!wsDir.exists()) {
File prefssource = ScriptingEngine.fileFromGit(
"https://github.com/CommonWealthRobotics/ExternalEditorsBowlerStudio.git",
"settingsTEMPLATE.epf");
Expand All @@ -195,12 +193,12 @@ public void launch(File file, Button advanced) {
} catch (IOException e) {
e.printStackTrace();
}
environment.put("ECLIPSE_PREFERENCE_FILE", settings.getAbsolutePath());
}
environment.put("JAVA_HOME", java.getAbsolutePath());
if(!isEclipseOpen( ws)) {
File exeFile = getConfigExecutable("eclipse",null);
String eclipseEXE = exeFile.getAbsolutePath();
environment.put("ECLIPSE_PREFERENCE_FILE", settings.getAbsolutePath());
run(environment,this,ScriptingEngine.getWorkspace() ,System.out, Arrays.asList(eclipseEXE, "-data", ws));
while (!isEclipseOpen( ws)) {
try {
Expand Down

0 comments on commit c69c62c

Please sign in to comment.