From 3ec33f99e4d6f3f408267d30702a571d2298d6b3 Mon Sep 17 00:00:00 2001 From: Sean McKenna Date: Fri, 7 Jun 2013 14:06:06 -0600 Subject: [PATCH] fix logical error for actually setting build folder --- app/src/processing/mode/java/Commander.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/src/processing/mode/java/Commander.java b/app/src/processing/mode/java/Commander.java index 94c3f1819..4d36864a5 100644 --- a/app/src/processing/mode/java/Commander.java +++ b/app/src/processing/mode/java/Commander.java @@ -219,7 +219,7 @@ public class Commander implements RunnerListener { } } - if(!outputFolder.mkdirs()) { + if (!outputFolder.mkdirs()) { complainAndQuit("Could not create the output folder.", false); } } @@ -236,15 +236,17 @@ public class Commander implements RunnerListener { if (sketchPath == null) { complainAndQuit("No sketch path specified.", true); - } else if (outputSet) { - if (outputPath.equals(sketchPath)) { - complainAndQuit("The sketch path and output path cannot be identical.", false); - } - // } else if (!pdePath.toLowerCase().endsWith(".pde")) { // complainAndQuit("Sketch path must point to the main .pde file.", false); } else { + + if (outputSet) { + if (outputPath.equals(sketchPath)) { + complainAndQuit("The sketch path and output path cannot be identical.", false); + } + } + boolean success = false; // JavaMode javaMode =