ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Chmod.java
Date Mon, 24 Jul 2000 14:01:30 GMT
bodewig     00/07/24 07:01:28

  Modified:    src/main/org/apache/tools/ant/taskdefs Chmod.java
  Log:
  Chmod didn't work if used as a matching task.
  Reported by:	Alex Smith <asmith42@hotmail.com>
  
  Revision  Changes    Path
  1.5       +6 -6      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Chmod.java
  
  Index: Chmod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Chmod.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Chmod.java	2000/07/06 16:48:13	1.4
  +++ Chmod.java	2000/07/24 14:01:26	1.5
  @@ -72,15 +72,15 @@
       private File srcDir;  //if we want to chmod a list of files
       private String mod;
       
  -    public void setFile(String src) {
  -        srcFile = project.resolveFile(src);
  +    public void setFile(File src) {
  +        srcFile = src;
       }
   
  -    public void setDir(String src) {
  -        srcDir = project.resolveFile(src);
  +    public void setDir(File src) {
  +        srcDir = src;
       }
   
  -    public void setSrc(String src) {
  +    public void setSrc(File src) {
           log("The src attribute is deprecated. " +
               "Please use the file attribute.",
               Project.MSG_WARN);
  @@ -108,7 +108,7 @@
                       String[] files = ds.getIncludedFiles();
             
                       for (int i = 0; i < files.length; i++) {
  -                        chmod(files[i]);
  +                        chmod((new File(srcDir, files[i])).getAbsolutePath());
                       }
                   }
               }
  
  
  

Mime
View raw message