You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2005/03/11 21:29:00 UTC

cvs commit: ant/src/main/org/apache/tools/ant/taskdefs ExecTask.java

mbenson     2005/03/11 12:29:00

  Modified:    src/main/org/apache/tools/ant/taskdefs ExecTask.java
  Log:
  Be specific about nonexistent or non-directory directory.
  PR: 24627
  Based on Alexey Solofnenko's patch
  
  Revision  Changes    Path
  1.80      +2 -4      ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java
  
  Index: ExecTask.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/ExecTask.java,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- ExecTask.java	11 Mar 2005 15:16:23 -0000	1.79
  +++ ExecTask.java	11 Mar 2005 20:29:00 -0000	1.80
  @@ -484,12 +484,10 @@
               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, "
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org