Browse Source

destdir is required.

PR: 16483


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@274124 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
c17483a6eb
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java

+ 8
- 1
src/main/org/apache/tools/ant/taskdefs/optional/jsp/JspC.java View File

@@ -400,7 +400,14 @@ public class JspC extends MatchingTask {
*/
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",


Loading…
Cancel
Save