Skip to content

Commit 967ca2b

Browse files
committed
add method for output path
1 parent f1fc693 commit 967ca2b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

java/src/processing/mode/java/preproc/PdePreprocessor.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ public static enum Mode {
159159
protected String sketchWidth;
160160
protected String sketchHeight;
161161
protected String sketchRenderer;
162+
protected String sketchOutputPath;
162163

163164
/**
164165
* Regular expression for parsing the size() method. This should match
@@ -208,6 +209,7 @@ public String[] initSketchSize(String code, boolean sizeWarning) throws SketchEx
208209
sketchWidth = info[1];
209210
sketchHeight = info[2];
210211
sketchRenderer = info[3];
212+
sketchOutputPath = info[4];
211213
}
212214
return info;
213215
}
@@ -955,6 +957,9 @@ protected void writeFooter(PrintWriter out, String className) {
955957
out.println(indent + "public String sketchRenderer() { return " + sketchRenderer + "; }");
956958
//}
957959
}
960+
if (sketchOutputPath != null && !hasMethod("sketchOutputPath")) {
961+
out.println(indent + "public String sketchOutputPath() { return " + sketchOutputPath + "; }");
962+
}
958963

959964
if (!hasMethod("main")) {
960965
out.println(indent + "static public void main(String[] passedArgs) {");

0 commit comments

Comments
 (0)