mirror of
https://github.com/processing/processing4.git
synced 2026-02-10 00:59:40 +01:00
Replace Kjc compiler with jikes
This commit is contained in:
@@ -649,13 +649,13 @@ afterwards, some of these steps need a cleanup function
|
||||
|
||||
// compile the program
|
||||
//
|
||||
PdeCompiler compilerKjc = new PdeCompilerKjc(buildPath, className, this);
|
||||
PdeCompiler compiler = new PdeCompiler(buildPath, className, this);
|
||||
|
||||
// this will catch and parse errors during compilation
|
||||
messageStream = new PdeMessageStream(this, compilerKjc);
|
||||
messageStream = new PdeMessageStream(this, compiler);
|
||||
leechErr = new PrintStream(messageStream);
|
||||
|
||||
boolean result = compilerKjc.compileJava(leechErr);
|
||||
boolean result = compiler.compileJava(leechErr);
|
||||
|
||||
// if the compilation worked, run the applet
|
||||
//
|
||||
@@ -1367,17 +1367,18 @@ afterwards, some of these steps need a cleanup function
|
||||
//
|
||||
PdePreprocessor preprocessorOro =
|
||||
new PdePreprocessorOro(program, appletDir.getPath());
|
||||
|
||||
exportSketchName =
|
||||
preprocessorOro.writeJava(exportSketchName,
|
||||
base.normalItem.getState(), true);
|
||||
PdeCompiler compilerKjc =
|
||||
new PdeCompilerKjc(appletDir.getPath(), exportSketchName, this);
|
||||
PdeCompiler compiler =
|
||||
new PdeCompiler(appletDir.getPath(), exportSketchName, this);
|
||||
|
||||
// this will catch and parse errors during compilation
|
||||
messageStream = new PdeMessageStream(this, compilerKjc);
|
||||
messageStream = new PdeMessageStream(this, compiler);
|
||||
leechErr = new PrintStream(messageStream);
|
||||
|
||||
if (!compilerKjc.compileJava(leechErr)) {
|
||||
if (!compiler.compileJava(leechErr)) {
|
||||
//throw new Exception("error while compiling, couldn't export");
|
||||
// message() will already have error message in this case
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user