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 Chmod.java
Date Wed, 14 Mar 2001 11:47:11 GMT
bodewig     01/03/14 03:47:10

  Modified:    src/main/org/apache/tools/ant/taskdefs Chmod.java
  Log:
  Make <chmod> work without a dir attribute.
  
  Revision  Changes    Path
  1.12      +2 -2      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.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Chmod.java	2001/03/13 03:04:06	1.11
  +++ Chmod.java	2001/03/14 11:47:08	1.12
  @@ -166,10 +166,10 @@
       }
   
       public void execute() throws BuildException {
  -        if (defaultSetDefined) {
  +        if (defaultSetDefined || defaultSet.getDir(project) == null) {
               super.execute();
           }
  -        else if (!defaultSetDefined && defaultSet.getDir(project) != null) {
  +        else {
               // we are chmodding the given directory
               createArg().setValue(defaultSet.getDir(project).getPath());
               Execute execute = prepareExec();
  
  
  

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


Mime
View raw message