diff --git a/classes/phing/tasks/system/ImportTask.php b/classes/phing/tasks/system/ImportTask.php
index <HASH>..<HASH> 100644
--- a/classes/phing/tasks/system/ImportTask.php
+++ b/classes/phing/tasks/system/ImportTask.php
@@ -106,6 +106,7 @@ class ImportTask extends Task {
       $msg = "Unable to find build file: {$file->getPath()}";
       if ($this->optional) {
         $this->log($msg . '... skipped');
+        return;
       } else {
         throw new BuildException($msg);
       }
Refs #<I> - import task doesn't skip file if optional is set to true