stevel 01/11/08 16:52:47
Modified: src/main/org/apache/tools/ant/taskdefs/optional/jsp
JspC.java
Log:
this doesnt fix anything, it just logs the #of files compiled better
Revision Changes Path
1.4 +12 -2
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
Index: JspC.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- JspC.java 2001/10/28 21:30:21 1.3
+++ JspC.java 2001/11/09 00:52:47 1.4
@@ -99,7 +99,7 @@
* </jspc>
* </pre>
*
- * @version $Revision: 1.3 $ $Date: 2001/10/28 21:30:21 $
+ * @version $Revision: 1.4 $ $Date: 2001/11/09 00:52:47 $
* @author <a href="mailto:[EMAIL PROTECTED]">Matthew Watson</a>
* <p> Large Amount of cutting and pasting from the Javac task...
* @author James Davidson <a href="mailto:[EMAIL PROTECTED]">[EMAIL
PROTECTED]</a>
@@ -305,6 +305,7 @@
// scan source directories and dest directory to build up both copy
// lists and compile lists
resetFileLists();
+ int filecount=0;
for (int i = 0; i < list.length; i++) {
File srcDir = (File)project.resolveFile(list[i]);
if (!srcDir.exists()) {
@@ -315,7 +316,7 @@
DirectoryScanner ds = this.getDirectoryScanner(srcDir);
String[] files = ds.getIncludedFiles();
-
+ filecount=files.length;
scanDir(srcDir, dest, files);
}
@@ -325,6 +326,7 @@
if (compiler == null) {
compiler = "jasper";
}
+ log("compiling "+compileList.size()+"
files",Project.MSG_VERBOSE);
if (compileList.size() > 0) {
@@ -348,6 +350,14 @@
}
}
}
+ else {
+ if(filecount==0) {
+ log("there were no files to
compile",Project.MSG_INFO);
+ }
+ else {
+ log("all files are up to
date",Project.MSG_VERBOSE);
+ }
+ }
}
/* ------------------------------------------------------------ */
/**
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>