From 9ee88d11ca2a3c2488eeaa5b73967d2a7e0e1853 Mon Sep 17 00:00:00 2001 From: Conor MacNeill Date: Sun, 27 Aug 2000 14:11:24 +0000 Subject: [PATCH] Set exit code appropriately when build file missing or invalid. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267941 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/org/apache/tools/ant/Main.java b/src/main/org/apache/tools/ant/Main.java index a8c8f1076..2f03f624d 100644 --- a/src/main/org/apache/tools/ant/Main.java +++ b/src/main/org/apache/tools/ant/Main.java @@ -236,7 +236,7 @@ public class Main { if (!buildFile.exists()) { System.out.println("Buildfile: " + buildFile + " does not exist!"); - return; + throw new BuildException("Build failed"); } // make sure it's not a directory (this falls into the ultra @@ -244,7 +244,7 @@ public class Main { if (buildFile.isDirectory()) { System.out.println("What? Buildfile: " + buildFile + " is a dir!"); - return; + throw new BuildException("Build failed"); } readyToRun = true;