mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Make it possible to run PDE in Eclipse on Windows, or on any platform
where the path may have URL-encoded characters in it.
This commit is contained in:
@@ -286,13 +286,13 @@ public class Platform {
|
||||
String decodedPath = PApplet.urlDecode(path);
|
||||
|
||||
if (decodedPath.contains("/app/bin")) { // This means we're in Eclipse
|
||||
final File build = new File(decodedPath, "../../build").getAbsoluteFile();
|
||||
if (Platform.isMacOS()) {
|
||||
processingRoot =
|
||||
new File(path, "../../build/macosx/work/Processing.app/Contents/Java");
|
||||
processingRoot = new File(build, "macosx/work/Processing.app/Contents/Java");
|
||||
} else if (Platform.isWindows()) {
|
||||
processingRoot = new File(path, "../../build/windows/work");
|
||||
processingRoot = new File(build, "windows/work");
|
||||
} else if (Platform.isLinux()) {
|
||||
processingRoot = new File(path, "../../build/linux/work");
|
||||
processingRoot = new File(build, "linux/work");
|
||||
}
|
||||
} else {
|
||||
// The .jar file will be in the lib folder
|
||||
|
||||
Reference in New Issue
Block a user