You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by co...@locus.apache.org on 2000/07/16 12:39:59 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant DefaultLogger.java Main.java
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 <gl...@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);
}
}
}
Bug in copydir with filtering on.
Posted by Jason van Zyl <jv...@periapt.com>.
Maybe this has been fix already but I just came across it
trying a copydir.
I copydir'd with filtering="on" and it added a byte to
my *.class files that were copied. I'm making example
turbine webapps for the Turbine Developer's Kit, so I'm
copying over a template directory of a webapp and plugging
in some values. There is only one class file in the tree,
but a byte is being added to when it's copied over.
jvz.
--
Jason van Zyl
jvanzyl@periapt.com