Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 45944 invoked from network); 3 Nov 2003 15:22:33 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Nov 2003 15:22:33 -0000 Received: (qmail 7269 invoked by uid 500); 3 Nov 2003 15:22:25 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 7232 invoked by uid 500); 3 Nov 2003 15:22:24 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 7218 invoked by uid 500); 3 Nov 2003 15:22:24 -0000 Received: (qmail 7215 invoked from network); 3 Nov 2003 15:22:24 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 3 Nov 2003 15:22:24 -0000 Received: (qmail 45899 invoked by uid 1146); 3 Nov 2003 15:22:28 -0000 Date: 3 Nov 2003 15:22:28 -0000 Message-ID: <20031103152228.45898.qmail@minotaur.apache.org> From: bodewig@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/optional/jdepend JDependTask.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N bodewig 2003/11/03 07:22:28 Modified: src/main/org/apache/tools/ant/taskdefs/optional/jdepend JDependTask.java Log: Indentation changes Revision Changes Path 1.25 +27 -20 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.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- JDependTask.java 3 Nov 2003 15:19:50 -0000 1.24 +++ JDependTask.java 3 Nov 2003 15:22:28 -0000 1.25 @@ -560,32 +560,39 @@ } if (getSourcespath() != null) { - // This is deprecated - use classespath in the future - String[] sourcesPath = getSourcespath().list(); - for (int i = 0; i < sourcesPath.length; i++) { - File f = new File(sourcesPath[i]); + // This is deprecated - use classespath in the future + String[] sourcesPath = getSourcespath().list(); + for (int i = 0; i < sourcesPath.length; i++) { + File f = new File(sourcesPath[i]); - // not necessary as JDepend would fail, but why loose some time? - if (!f.exists() || !f.isDirectory()) { - throw new BuildException("\"" + f.getPath() + "\" does not " - + "represent a valid directory. JDepend would fail."); + // not necessary as JDepend would fail, but why loose + // some time? + if (!f.exists() || !f.isDirectory()) { + throw new BuildException("\"" + f.getPath() + + "\" does not represent a valid" + + " directory. JDepend would" + + " fail."); + } + commandline.createArgument().setValue(f.getPath()); } - 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++) { - File f = new File(classesPath[i]); - // not necessary as JDepend would fail, but why loose some time? - if (!f.exists() || !f.isDirectory()) { - throw new BuildException("\"" + f.getPath() + "\" does not " - + "represent a valid directory. JDepend would fail."); + // 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++) { + File f = new File(classesPath[i]); + // not necessary as JDepend would fail, but why loose + // some time? + if (!f.exists() || !f.isDirectory()) { + throw new BuildException("\"" + f.getPath() + + "\" does not represent a valid" + + " directory. JDepend would" + + " fail."); + } + commandline.createArgument().setValue(f.getPath()); } - commandline.createArgument().setValue(f.getPath()); - } } Execute execute = new Execute(new LogStreamHandler(this, --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org