bodewig 2003/02/18 06:29:56
Modified: src/main/org/apache/tools/ant/taskdefs/optional/jsp
JspC.java
Log:
destdir is required.
PR: 16483
Revision Changes Path
1.30 +8 -1
ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java
Index: JspC.java
===================================================================
RCS file:
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- JspC.java 10 Feb 2003 14:14:12 -0000 1.29
+++ JspC.java 18 Feb 2003 14:29:56 -0000 1.30
@@ -400,7 +400,14 @@
*/
public void execute()
throws BuildException {
- if (destDir != null && !destDir.isDirectory()) {
+
+ // make sure that we've got a destdir
+ if (destDir == null) {
+ throw new BuildException("destdir attribute must be set!",
+ getLocation());
+ }
+
+ if (!destDir.isDirectory()) {
throw new
BuildException("destination directory \"" + destDir +
"\" does not exist or is not a directory",