mirror of
https://github.com/processing/processing4.git
synced 2026-02-10 09:09:26 +01:00
getting bagel building
This commit is contained in:
@@ -49,7 +49,7 @@ public class PdeSketch {
|
||||
|
||||
// all these set each time build() is called
|
||||
boolean externalRuntime;
|
||||
String mainClassName;
|
||||
//String mainClassName;
|
||||
String classPath;
|
||||
String libraryPath;
|
||||
|
||||
@@ -475,7 +475,7 @@ public class PdeSketch {
|
||||
|
||||
|
||||
/**
|
||||
* Have the contents of the currently visible tab been modified.
|
||||
* Have the contents of the currently visible tab been modified?
|
||||
*/
|
||||
/*
|
||||
public boolean isCurrentModified() {
|
||||
@@ -521,6 +521,8 @@ public class PdeSketch {
|
||||
// if .pde, run preproc to buildpath
|
||||
// if no class def'd for the pde file, then complain
|
||||
|
||||
String mainClassName = null;
|
||||
|
||||
for (int i = 0; i < codeCount; i++) {
|
||||
if (code[i].flavor == JAVA) {
|
||||
// no pre-processing services necessary for java files
|
||||
@@ -608,7 +610,7 @@ public class PdeSketch {
|
||||
//
|
||||
PdeCompiler compiler = new PdeCompiler();
|
||||
boolean success = compiler.compile(this, buildPath);
|
||||
return success ? className : null;
|
||||
return success ? mainClassName : null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user