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 BuildNumber.java
Date Tue, 02 Apr 2002 15:25:45 GMT
bodewig     02/04/02 07:25:45

  Modified:    src/main/org/apache/tools/ant/taskdefs BuildNumber.java
  Log:
  improve error reporting in buildnumber task a little.
  
  Revision  Changes    Path
  1.4       +3 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java
  
  Index: BuildNumber.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/BuildNumber.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BuildNumber.java	2 Apr 2002 08:42:44 -0000	1.3
  +++ BuildNumber.java	2 Apr 2002 15:25:45 -0000	1.4
  @@ -71,7 +71,7 @@
    * by one and write it back out into the file.
    *
    * @author <a href="mailto:peter@apache.org">Peter Donald</a>
  - * @version $Revision: 1.3 $ $Date: 2002/04/02 08:42:44 $
  + * @version $Revision: 1.4 $ $Date: 2002/04/02 15:25:45 $
    * @ant.task name="buildnumber"
    */
   public class BuildNumber
  @@ -174,7 +174,7 @@
           {
               final String message = 
                   m_file + " contains a non integer build number: " + buildNumber;
  -            throw new BuildException( message );
  +            throw new BuildException( message , nfe );
           }
       }
   
  @@ -197,7 +197,7 @@
           }
           catch( final IOException ioe )
           {
  -            throw new BuildException( ioe.getMessage() );
  +            throw new BuildException( ioe );
           }
           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