From a94ef2aa3bc2c2129b8cbe32eb41ef4f21023284 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Mon, 3 Nov 2003 15:22:28 +0000 Subject: [PATCH] Indentation changes git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275603 13f79535-47bb-0310-9956-ffa450edef68 --- .../optional/jdepend/JDependTask.java | 49 +++++++++++-------- 1 file changed, 28 insertions(+), 21 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java b/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java index 88ecba085..522aa9047 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/jdepend/JDependTask.java @@ -560,32 +560,39 @@ public class JDependTask extends Task { } 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]); - - // 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 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."); + } + 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,