Browse Source

Bugzilla report 28865: allow files in classespath for <jdepend>

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@440200 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 19 years ago
parent
commit
b3b45f91c2
2 changed files with 5 additions and 4 deletions
  1. +2
    -0
      WHATSNEW
  2. +3
    -4
      src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java

+ 2
- 0
WHATSNEW View File

@@ -26,6 +26,8 @@ Other changes:
the language jars to be specified in the build script.
Bugzilla report 29676.
* trim the driver attribute on the <sql> task. Bugzilla report 21228.
* Allow (jar) files as well as directories to be given to jdepend.
Bugzilla report 28865.

Changes from Ant 1.6.5 to Ant 1.7.0Beta1
========================================


+ 3
- 4
src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java View File

@@ -473,18 +473,17 @@ public class JDependTask extends Task {
if (getClassespath() != null) {
// This is the new, better way - use classespath instead
// of sourcespath. The code is currently the same - you
// need class files in a directory to use this - jar files
// coming soon....
// need class files in a directory to use this or jar files.
String[] cP = getClassespath().list();
for (int i = 0; i < cP.length; i++) {
File f = new File(cP[i]);
// not necessary as JDepend would fail, but why loose
// some time?
if (!f.exists() || !f.isDirectory()) {
if (!f.exists()) {
String msg = "\""
+ f.getPath()
+ "\" does not represent a valid"
+ " directory. JDepend would fail.";
+ " file or directory. JDepend would fail.";
log(msg);
throw new BuildException(msg);
}


Loading…
Cancel
Save