You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2002/10/17 07:51:29 UTC

cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Pack.java

bodewig     2002/10/16 22:51:29

  Modified:    src/main/org/apache/tools/ant/taskdefs Pack.java
  Log:
  Provide more meaningfull message if source doesn't exist in <.+zip>
  
  Revision  Changes    Path
  1.11      +4 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Pack.java
  
  Index: Pack.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Pack.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Pack.java	23 Jul 2002 08:39:53 -0000	1.10
  +++ Pack.java	17 Oct 2002 05:51:29 -0000	1.11
  @@ -124,7 +124,10 @@
       public void execute() throws BuildException {
           validate();
   
  -        if (zipFile.lastModified() < source.lastModified()) {
  +        if (!source.exists()) {
  +            log("Nothing to do: " + source.getAbsolutePath() +
  +                " doesn't exist.");
  +        } else if (zipFile.lastModified() < source.lastModified()) {
               log("Building: " + zipFile.getAbsolutePath());
               pack();
           } else {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>