From a6169fa4e0a767e97f8e8b9f6c451fa9174dc6d9 Mon Sep 17 00:00:00 2001 From: Matthew Jason Benson Date: Fri, 11 Mar 2005 20:29:00 +0000 Subject: [PATCH] Be specific about nonexistent or non-directory directory. PR: 24627 Based on Alexey Solofnenko's patch git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277912 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/org/apache/tools/ant/taskdefs/ExecTask.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/ExecTask.java b/src/main/org/apache/tools/ant/taskdefs/ExecTask.java index c9817ceb7..a5a5edf60 100644 --- a/src/main/org/apache/tools/ant/taskdefs/ExecTask.java +++ b/src/main/org/apache/tools/ant/taskdefs/ExecTask.java @@ -484,12 +484,10 @@ public class ExecTask extends Task { throw new BuildException("no executable specified", getLocation()); } if (dir != null && !dir.exists()) { - throw new BuildException("The directory you specified does not " - + "exist"); + throw new BuildException("The directory " + dir + " does not exist"); } if (dir != null && !dir.isDirectory()) { - throw new BuildException("The directory you specified is not a " - + "directory"); + throw new BuildException(dir + " is not a directory"); } if (spawn && incompatibleWithSpawn) { getProject().log("spawn does not allow attributes related to input, "