mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 10:51:07 +01:00
add another try/catch for createWriter() call
This commit is contained in:
@@ -248,11 +248,15 @@ public class JavaBuild {
|
||||
srcFolder : new File(srcFolder, packageName.replace('.', '/'));
|
||||
outputFolder.mkdirs();
|
||||
final File java = new File(outputFolder, sketch.getName() + ".java");
|
||||
final PrintWriter writer = PApplet.createWriter(java);
|
||||
try {
|
||||
result = preprocessor.write(writer, bigCode.toString(), codeFolderPackages);
|
||||
} finally {
|
||||
writer.close();
|
||||
final PrintWriter writer = PApplet.createWriter(java);
|
||||
try {
|
||||
result = preprocessor.write(writer, bigCode.toString(), codeFolderPackages);
|
||||
} finally {
|
||||
writer.close();
|
||||
}
|
||||
} catch (RuntimeException re) {
|
||||
throw new SketchException("Could not write " + java.getAbsolutePath());
|
||||
}
|
||||
} catch (antlr.RecognitionException re) {
|
||||
// re also returns a column that we're not bothering with for now
|
||||
|
||||
Reference in New Issue
Block a user