ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs GZip.java
Date Wed, 12 Sep 2001 15:21:55 GMT
donaldp     01/09/12 08:21:55

  Modified:    src/main/org/apache/tools/ant/taskdefs GZip.java
  Log:
  Deprecated zipfile in favour of file to follow siuit with the other tasks that deal with
archives.
  
  Revision  Changes    Path
  1.9       +7 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/GZip.java
  
  Index: GZip.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/GZip.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- GZip.java	2001/07/07 13:51:11	1.8
  +++ GZip.java	2001/09/12 15:21:55	1.9
  @@ -72,8 +72,13 @@
       private File zipFile;
       private File source;
       
  -    public void setZipfile(File zipFilename) {
  -        zipFile = zipFilename;
  +    public void setFile(File file) {
  +        zipFile = file;
  +    }
  +
  +    public void setZipfile(File zipFile) {
  +        log("DEPRECATED - The zipfile attribute is deprecated. Use file attribute instead.");
  +        setFile( zipFile );
       }
   
       public void setSrc(File src) {
  
  
  

Mime
View raw message