antoine 2003/07/26 09:58:14
Modified: src/main/org/apache/tools/ant/taskdefs XSLTProcess.java
Log:
PR: 21520
throw an exception if input file does not exist
Revision Changes Path
1.71 +4 -1
ant/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java
Index: XSLTProcess.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/XSLTProcess.java,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -r1.70 -r1.71
--- XSLTProcess.java 26 Jul 2003 16:40:08 -0000 1.70
+++ XSLTProcess.java 26 Jul 2003 16:58:14 -0000 1.71
@@ -211,6 +211,9 @@
throw new BuildException("no stylesheet specified",
getLocation());
}
+ if (inFile != null && !inFile.exists()) {
+ throw new BuildException("input file " + inFile.toString() + "
does not exist", getLocation());
+ }
try {
if (baseDir == null) {
baseDir = getProject().resolveFile(".");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]