diff --git a/java/src/processing/mode/java/preproc/PdePreprocessor.java b/java/src/processing/mode/java/preproc/PdePreprocessor.java index 742fde183..5f0123967 100644 --- a/java/src/processing/mode/java/preproc/PdePreprocessor.java +++ b/java/src/processing/mode/java/preproc/PdePreprocessor.java @@ -159,6 +159,7 @@ public class PdePreprocessor { protected String sketchWidth; protected String sketchHeight; protected String sketchRenderer; + protected String sketchOutputPath; /** * Regular expression for parsing the size() method. This should match @@ -208,6 +209,7 @@ public class PdePreprocessor { sketchWidth = info[1]; sketchHeight = info[2]; sketchRenderer = info[3]; + sketchOutputPath = info[4]; } return info; } @@ -955,6 +957,9 @@ public class PdePreprocessor { out.println(indent + "public String sketchRenderer() { return " + sketchRenderer + "; }"); //} } + if (sketchOutputPath != null && !hasMethod("sketchOutputPath")) { + out.println(indent + "public String sketchOutputPath() { return " + sketchOutputPath + "; }"); + } if (!hasMethod("main")) { out.println(indent + "static public void main(String[] passedArgs) {");