ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@locus.apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant DefaultLogger.java Main.java
Date Sun, 16 Jul 2000 10:39:59 GMT
conor       00/07/16 03:39:59

  Modified:    src/main/org/apache/tools/ant DefaultLogger.java Main.java
  Log:
  Handle case where listener cannot be instantiated.
  
  Submitted by:	Glenn McAllister <glennm@ca.ibm.com>
  
  Revision  Changes    Path
  1.4       +2 -1      jakarta-ant/src/main/org/apache/tools/ant/DefaultLogger.java
  
  Index: DefaultLogger.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/DefaultLogger.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- DefaultLogger.java	2000/07/12 10:46:11	1.3
  +++ DefaultLogger.java	2000/07/16 10:39:58	1.4
  @@ -66,7 +66,8 @@
   
       private PrintStream out;
       private int msgOutputLevel;
  -    private long startTime;
  +    private long startTime = System.currentTimeMillis();
  +
   
       /**
        *  Constructs a new logger which will write to the specified
  
  
  
  1.12      +4 -3      jakarta-ant/src/main/org/apache/tools/ant/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/Main.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Main.java	2000/07/03 12:10:26	1.11
  +++ Main.java	2000/07/16 10:39:58	1.12
  @@ -238,12 +238,13 @@
           }
   
           Project project = new Project();
  -        addBuildListeners(project);
  -        project.fireBuildStarted();
   
           Throwable error = null;
   
           try {
  +            addBuildListeners(project);
  +            project.fireBuildStarted();
  +            
               project.init();
   
               // set user-define properties
  @@ -303,7 +304,7 @@
                   project.addBuildListener(listener);
               }
               catch(Exception exc) {
  -                throw new BuildException("Unable to instantiate " + className, exc);
  +                throw new BuildException("Unable to instantiate listener " + className,
exc);
               }
           }
       }
  
  
  

Mime
View raw message