Browse Source

skip non-directory entries in sourcepath

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@374000 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 19 years ago
parent
commit
1740fe9a0b
1 changed files with 12 additions and 6 deletions
  1. +12
    -6
      src/main/org/apache/tools/ant/taskdefs/Javadoc.java

+ 12
- 6
src/main/org/apache/tools/ant/taskdefs/Javadoc.java View File

@@ -1,5 +1,5 @@
/*
* Copyright 2000-2005 The Apache Software Foundation
* Copyright 2000-2006 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -2102,11 +2102,17 @@ public class Javadoc extends Task {

String[] pathElements = sourcePath.list();
for (int i = 0; i < pathElements.length; i++) {
DirSet ds = new DirSet();
ds.setDefaultexcludes(useDefaultExcludes);
ds.setDir(new File(pathElements[i]));
ds.createPatternSet().addConfiguredPatternset(ps);
dirSets.addElement(ds);
File dir = new File(pathElements[i]);
if (dir.isDirectory()) {
DirSet ds = new DirSet();
ds.setDefaultexcludes(useDefaultExcludes);
ds.setDir(dir);
ds.createPatternSet().addConfiguredPatternset(ps);
dirSets.addElement(ds);
} else {
log("Skipping " + pathElements[i]
+ " since it is no directory.", Project.MSG_WARN);
}
}
}



Loading…
Cancel
Save