After applying this patch your ANT will print "1 file"
instead of "1 files" to the log, before performing javac compile
and support files copying.
Simple, but useful for aesthetes. :)
Regards,
Vitaly Stulsky
mailto:[EMAIL PROTECTED]
Index: src/main/org/apache/tools/ant/taskdefs/Javac.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Javac.java,v
retrieving revision 1.12
diff -u -r1.12 Javac.java
--- src/main/org/apache/tools/ant/taskdefs/Javac.java 2000/05/23 12:08:17
1.12
+++ src/main/org/apache/tools/ant/taskdefs/Javac.java 2000/06/13 14:31:47
@@ -220,7 +220,8 @@
if (compileList.size() > 0) {
project.log("Compiling " + compileList.size() +
- " source files to " + destDir);
+ " source file"+(compileList.size()==1 ? "" : "s" ) +
+ " to " + destDir);
if (compiler.equalsIgnoreCase("classic")) {
doClassicCompile();
@@ -238,7 +239,8 @@
if (filecopyList.size() > 0) {
project.log("Copying " + filecopyList.size() +
- " support files to " + destDir.getAbsolutePath());
+ " support file"+ (filecopyList.size()==1 ? "" : "s") +
+ "to " + destDir.getAbsolutePath());
Enumeration enum = filecopyList.keys();
while (enum.hasMoreElements()) {
String fromFile = (String) enum.nextElement();