Skip to content

Commit 365188e

Browse files
committed
Update the groovy file creation
1 parent 2f0b30c commit 365188e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/com/neuronrobotics/bowlerstudio/scripting/external/GroovyEclipseExternalEditor.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,17 @@ protected void setUpEclipseProjectFiles(File dir , File project, String name) th
7070
+ "org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning\n"
7171
+ "org.eclipse.jdt.core.compiler.release=disabled\n"
7272
+ "org.eclipse.jdt.core.compiler.source=1.8\n"
73+
+ "org.eclipse.jdt.core.compiler.problem.incompatibleJDKLevel=ignore\n"
7374
+ "\n";
75+
String launchPrefs = "eclipse.preferences.version=1\n"
76+
+ "org.eclipse.jdt.launching.PREF_COMPILER_COMPLIANCE_DOES_NOT_MATCH_JRE=warning\n"
77+
+ "org.eclipse.jdt.launching.PREF_STRICTLY_COMPATIBLE_JRE_NOT_AVAILABLE=warning\n";
7478
File file = new File(dir.getAbsolutePath() + delim()+".settings");
7579
if(!file.exists())
7680
file.mkdirs();
7781
Files.write(Paths.get(file.getAbsolutePath()+ delim()+"org.eclipse.jdt.core.prefs"), java8Prefs.getBytes());
78-
82+
Files.write(Paths.get(file.getAbsolutePath()+ delim()+"org.eclipse.jdt.launching.prefs"), launchPrefs.getBytes());
83+
7984
Files.write(Paths.get(project.getAbsolutePath()), ProjectContent.getBytes());
8085
//String latestVersionString = "1.12.0";
8186
// InputStream is = new URL(

0 commit comments

Comments
 (0)