bodewig 2003/11/03 07:19:50 Modified: src/main/org/apache/tools/ant/taskdefs/optional/jdepend JDependTask.java Log: Fix NPE, PR: 24344 Revision Changes Path 1.24 +4 -0 ant/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java Index: JDependTask.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- JDependTask.java 3 Nov 2003 15:01:41 -0000 1.23 +++ JDependTask.java 3 Nov 2003 15:19:50 -0000 1.24 @@ -559,6 +559,7 @@ // we have to find a cleaner way to put this output } + if (getSourcespath() != null) { // This is deprecated - use classespath in the future String[] sourcesPath = getSourcespath().list(); for (int i = 0; i < sourcesPath.length; i++) { @@ -571,7 +572,9 @@ } commandline.createArgument().setValue(f.getPath()); } + } + if (getClassespath() != null) { // This is the new way - use classespath - code is the same for now String[] classesPath = getClassespath().list(); for (int i = 0; i < classesPath.length; i++) { @@ -582,6 +585,7 @@ + "represent a valid directory. JDepend would fail."); } commandline.createArgument().setValue(f.getPath()); + } } Execute execute = new Execute(new LogStreamHandler(this,
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]