ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Pack.java
Date Thu, 17 Oct 2002 05:51:29 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message