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, "