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/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/unix Chmod.java
Date Sun, 06 Jan 2002 01:57:23 GMT
donaldp     02/01/05 17:57:23

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/unix
                        Chmod.java
  Log:
  Cleanup code a little
  
  Revision  Changes    Path
  1.5       +5 -4      jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/unix/Chmod.java
  
  Index: Chmod.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/unix/Chmod.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- Chmod.java	1 Jan 2002 09:13:46 -0000	1.4
  +++ Chmod.java	6 Jan 2002 01:57:23 -0000	1.5
  @@ -107,10 +107,10 @@
           havePerm = true;
       }
   
  -    public void setSkipEmptyFilesets( boolean skip )
  -        throws TaskException
  +    public void setSkipEmptyFilesets( final boolean skip )
       {
  -        throw new TaskException( getName() + " doesn\'t support the skipemptyfileset attribute"
);
  +        final String message = getName() + " doesn\'t support the skipemptyfileset attribute";
  +        throw new IllegalArgumentException( message );
       }
   
       /**
  @@ -168,7 +168,8 @@
               }
               catch( IOException e )
               {
  -                throw new TaskException( "Execute failed: " + e, e );
  +                final String message = "Execute failed: " + e;
  +                throw new TaskException( message, e );
               }
               finally
               {
  
  
  

--
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