From notifications-return-1278-apmail-ant-notifications-archive=ant.apache.org@ant.apache.org Sun Mar 02 09:34:14 2008 Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 50923 invoked from network); 2 Mar 2008 09:34:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2008 09:34:14 -0000 Received: (qmail 98171 invoked by uid 500); 2 Mar 2008 09:34:09 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 98145 invoked by uid 500); 2 Mar 2008 09:34:09 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 98136 invoked by uid 99); 2 Mar 2008 09:34:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 01:34:09 -0800 X-ASF-Spam-Status: No, hits=-1998.0 required=10.0 tests=ALL_TRUSTED,URIBL_BLACK X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 09:33:20 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 7D5DC1A9832; Sun, 2 Mar 2008 01:33:39 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r632728 - in /ant/ivy/core/trunk/src/example: chained-resolvers/chainedresolvers-project/src/example/ configurations/jdbc-example/src/example/ configurations/multi-projects/filter-framework/src/filter/ configurations/multi-projects/filter-f... Date: Sun, 02 Mar 2008 09:33:36 -0000 To: notifications@ant.apache.org From: xavier@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080302093339.7D5DC1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: xavier Date: Sun Mar 2 01:33:32 2008 New Revision: 632728 URL: http://svn.apache.org/viewvc?rev=632728&view=rev Log: checkstyle fix in examples Modified: ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java ant/ivy/core/trunk/src/example/configurations/jdbc-example/src/example/ConfigurationsExample.java ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/FilterProvider.java ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/ccimpl/CCFilter.java ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/hmimpl/HMFilter.java ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/test/filter/AbstractTestFilter.java ant/ivy/core/trunk/src/example/configurations/multi-projects/myapp/src/myapp/Main.java ant/ivy/core/trunk/src/example/dependence/dependee/src/standalone/Main.java ant/ivy/core/trunk/src/example/dependence/depender/src/depending/Main.java ant/ivy/core/trunk/src/example/dual/project/src/example/Hello.java ant/ivy/core/trunk/src/example/hello-ivy/src/example/Hello.java ant/ivy/core/trunk/src/example/multi-project/projects/console/src/console/Main.java ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/FindFile.java ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/Main.java ant/ivy/core/trunk/src/example/multi-project/projects/list/src/list/ListFile.java ant/ivy/core/trunk/src/example/multi-project/projects/list/src/list/Main.java ant/ivy/core/trunk/src/example/multi-project/projects/size/src/size/FileSize.java ant/ivy/core/trunk/src/example/multi-project/projects/sizewhere/src/sizewhere/Main.java ant/ivy/core/trunk/src/example/multi-project/projects/sizewhere/src/sizewhere/SizeWhere.java ant/ivy/core/trunk/src/example/multi-project/projects/version/src/version/Version.java Modified: ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java (original) +++ ant/ivy/core/trunk/src/example/chained-resolvers/chainedresolvers-project/src/example/Hello.java Sun Mar 2 01:33:32 2008 @@ -22,11 +22,16 @@ /** * Simple example world to show how easy it is to retreive libs with ivy !!! */ -public class Hello { +public final class Hello { public static void main(String[] args) { String message = "example world !"; System.out.println("standard message :" + message); - System.out.println("capitalized by " + WordUtils.class.getName() + " : " + WordUtils.capitalizeFully(message)); - System.out.println("upperCased by " + test.StringUtils.class.getName() + " : " + test.StringUtils.upperCase(message)); + System.out.println("capitalized by " + WordUtils.class.getName() + + " : " + WordUtils.capitalizeFully(message)); + System.out.println("upperCased by " + test.StringUtils.class.getName() + + " : " + test.StringUtils.upperCase(message)); + } + + private Hello() { } } Modified: ant/ivy/core/trunk/src/example/configurations/jdbc-example/src/example/ConfigurationsExample.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/configurations/jdbc-example/src/example/ConfigurationsExample.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/configurations/jdbc-example/src/example/ConfigurationsExample.java (original) +++ ant/ivy/core/trunk/src/example/configurations/jdbc-example/src/example/ConfigurationsExample.java Sun Mar 2 01:33:32 2008 @@ -25,37 +25,40 @@ import org.apache.commons.cli.ParseException; import org.apache.commons.cli.PosixParser; -public class ConfigurationsExample { +public final class ConfigurationsExample { public static void main(String[] args) { String jdbcPropToLoad = "prod.properties"; CommandLineParser parser = new PosixParser(); Options options = new Options(); - options.addOption("d", "dev", false, "Dev tag to launch app in dev mode. Means that app will launch embedded mckoi db."); + options.addOption("d", "dev", false, + "Dev tag to launch app in dev mode. Means that app will launch embedded mckoi db."); try { - CommandLine line = parser.parse( options, args ); - if(line.hasOption("d")) { + CommandLine line = parser.parse(options, args); + if (line.hasOption("d")) { System.err.println("App is in DEV mode"); jdbcPropToLoad = "dev.properties"; } - } - catch( ParseException exp ) { - System.err.println( "Parsing failed. Reason: " + exp.getMessage() ); + } catch (ParseException exp) { + System.err.println("Parsing failed. Reason: " + exp.getMessage()); } Properties p = new Properties(); try { - p.load(ConfigurationsExample.class.getResourceAsStream("/"+jdbcPropToLoad)); + p.load(ConfigurationsExample.class.getResourceAsStream("/" + jdbcPropToLoad)); } catch (IOException e) { - System.err.println( "Properties loading failed. Reason: " + e.getMessage()); + System.err.println("Properties loading failed. Reason: " + e.getMessage()); } try { String clazz = p.getProperty("driver.class"); Class.forName(clazz); - System.out.println(" Jdbc driver loaded :"+clazz); + System.out.println(" Jdbc driver loaded :" + clazz); } catch (ClassNotFoundException e) { - System.err.println( "Jdbc Driver class loading failed. Reason: " + e.getMessage()); + System.err.println("Jdbc Driver class loading failed. Reason: " + e.getMessage()); e.printStackTrace(); } + } + + private ConfigurationsExample() { } } Modified: ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/FilterProvider.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/FilterProvider.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/FilterProvider.java (original) +++ ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/FilterProvider.java Sun Mar 2 01:33:32 2008 @@ -18,7 +18,7 @@ package filter; -public class FilterProvider { +public final class FilterProvider { public static IFilter getFilter() { try { @@ -33,5 +33,8 @@ } return null; } + } + + private FilterProvider() { } } Modified: ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/ccimpl/CCFilter.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/ccimpl/CCFilter.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/ccimpl/CCFilter.java (original) +++ ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/ccimpl/CCFilter.java Sun Mar 2 01:33:32 2008 @@ -27,17 +27,17 @@ public class CCFilter implements IFilter { public String[] filter(String[] values, final String prefix) { - if(values == null) { + if (values == null) { return null; } - if(prefix == null) { + if (prefix == null) { return values; } List result = new ArrayList(Arrays.asList(values)); CollectionUtils.filter(result, new Predicate() { public boolean evaluate(Object o) { - return o!= null && o.toString().startsWith(prefix); + return o != null && o.toString().startsWith(prefix); } }); return (String[]) result.toArray(new String[result.size()]); Modified: ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/hmimpl/HMFilter.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/hmimpl/HMFilter.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/hmimpl/HMFilter.java (original) +++ ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/src/filter/hmimpl/HMFilter.java Sun Mar 2 01:33:32 2008 @@ -24,16 +24,16 @@ public class HMFilter implements IFilter { public String[] filter(String[] values, String prefix) { - if(values == null) { + if (values == null) { return null; } - if(prefix == null) { + if (prefix == null) { return values; } List result = new ArrayList(); for (int i = 0; i < values.length; i++) { String string = values[i]; - if(string != null && string.startsWith(prefix)) { + if (string != null && string.startsWith(prefix)) { result.add(string); } } Modified: ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/test/filter/AbstractTestFilter.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/test/filter/AbstractTestFilter.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/test/filter/AbstractTestFilter.java (original) +++ ant/ivy/core/trunk/src/example/configurations/multi-projects/filter-framework/test/filter/AbstractTestFilter.java Sun Mar 2 01:33:32 2008 @@ -34,7 +34,7 @@ /** * @return */ - public abstract IFilter getIFilter() ; + public abstract IFilter getIFilter(); public void testFilterNullValues() { Exception err = null; @@ -57,7 +57,8 @@ } public void testFilter() { - String[] result = getIFilter().filter(new String[]{"test", "nogood", "mustbe filtered"}, "t"); + String[] result = getIFilter().filter( + new String[]{"test", "nogood", "mustbe filtered"}, "t"); assertNotNull(result); assertEquals(result.length, 1); } Modified: ant/ivy/core/trunk/src/example/configurations/multi-projects/myapp/src/myapp/Main.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/configurations/multi-projects/myapp/src/myapp/Main.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/configurations/multi-projects/myapp/src/myapp/Main.java (original) +++ ant/ivy/core/trunk/src/example/configurations/multi-projects/myapp/src/myapp/Main.java Sun Mar 2 01:33:32 2008 @@ -21,13 +21,16 @@ import filter.FilterProvider; import filter.IFilter; -public class Main { +public final class Main { public static void main(String[] args) { - String[] toFilter = new String[]{"one", "two", "tree", "four"}; + String[] toFilter = new String[] {"one", "two", "tree", "four"}; IFilter filter = FilterProvider.getFilter(); - System.out.println("Filtering with:"+filter.getClass()); + System.out.println("Filtering with:" + filter.getClass()); String[] filtered = filter.filter(toFilter, "t"); - System.out.println("Result :"+Arrays.asList(filtered)); + System.out.println("Result :" + Arrays.asList(filtered)); + } + + private Main() { } } Modified: ant/ivy/core/trunk/src/example/dependence/dependee/src/standalone/Main.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/dependence/dependee/src/standalone/Main.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/dependence/dependee/src/standalone/Main.java (original) +++ ant/ivy/core/trunk/src/example/dependence/dependee/src/standalone/Main.java Sun Mar 2 01:33:32 2008 @@ -24,7 +24,7 @@ /** * TODO write javadoc */ -public class Main { +public final class Main { /** * Returns the version of the project * @return a string representation of the version, null if the version could not be retreived @@ -49,12 +49,16 @@ * @return null if the string was null, the string with all words capitalized otherwise */ public static String capitalizeWords(String str) { - System.out.println(" [" + Main.class.getName() + "] capitalizing string \"" + str + "\" using " + WordUtils.class.getName()); + System.out.println(" [" + Main.class.getName() + "] capitalizing string \"" + + str + "\" using " + WordUtils.class.getName()); return WordUtils.capitalizeFully(str); } public static void main(String[] args) { - String message="sentence to capitalize"; + String message = "sentence to capitalize"; System.out.println("standard message : " + message); System.out.println("capitalized message : " + capitalizeWords(message)); + } + + private Main() { } } Modified: ant/ivy/core/trunk/src/example/dependence/depender/src/depending/Main.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/dependence/depender/src/depending/Main.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/dependence/depender/src/depending/Main.java (original) +++ ant/ivy/core/trunk/src/example/dependence/depender/src/depending/Main.java Sun Mar 2 01:33:32 2008 @@ -20,16 +20,21 @@ /** * TODO write javadoc */ -public class Main { +public final class Main { public static void main(String[] args) { String standaloneVersion = standalone.Main.getVersion(); - if (standaloneVersion!=null) { - System.out.println("you are using version " + standaloneVersion + " of class " + standalone.Main.class.getName()); + if (standaloneVersion != null) { + System.out.println("you are using version " + standaloneVersion + + " of class " + standalone.Main.class.getName()); } else { System.err.println("failed to get version of " + standalone.Main.class.getName()); } - String message = "i am " + Main.class.getName() + " and " + standalone.Main.class.getName() + " will do the job for me"; + String message = "i am " + Main.class.getName() + + " and " + standalone.Main.class.getName() + " will do the job for me"; System.out.println("standard message : " + message); System.out.println("capitalized message : " + standalone.Main.capitalizeWords(message)); + } + + private Main() { } } Modified: ant/ivy/core/trunk/src/example/dual/project/src/example/Hello.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/dual/project/src/example/Hello.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/dual/project/src/example/Hello.java (original) +++ ant/ivy/core/trunk/src/example/dual/project/src/example/Hello.java Sun Mar 2 01:33:32 2008 @@ -17,10 +17,7 @@ */ package example; -import java.io.IOException; - import org.apache.commons.httpclient.HttpClient; -import org.apache.commons.httpclient.HttpException; import org.apache.commons.httpclient.methods.HeadMethod; import org.apache.commons.lang.WordUtils; @@ -28,22 +25,27 @@ * Simple hello world example to show how easy it is to retrieve libs with ivy, * including transitive dependencies */ -public class Hello { +public final class Hello { public static void main(String[] args) throws Exception { String message = "hello ivy !"; System.out.println("standard message : " + message); - System.out.println("capitalized by " + WordUtils.class.getName() + " : " + WordUtils.capitalizeFully(message)); + System.out.println("capitalized by " + WordUtils.class.getName() + + " : " + WordUtils.capitalizeFully(message)); HttpClient client = new HttpClient(); HeadMethod head = new HeadMethod("http://www.ibiblio.org/"); client.executeMethod(head); int status = head.getStatusCode(); - System.out.println("head status code with httpclient: "+status); + System.out.println("head status code with httpclient: " + status); head.releaseConnection(); - System.out.println("now check if httpclient dependency on commons-logging has been realized"); + System.out.println( + "now check if httpclient dependency on commons-logging has been realized"); Class clss = Class.forName("org.apache.commons.logging.Log"); - System.out.println("found logging class in classpath: "+clss); + System.out.println("found logging class in classpath: " + clss); + } + + private Hello() { } } Modified: ant/ivy/core/trunk/src/example/hello-ivy/src/example/Hello.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/hello-ivy/src/example/Hello.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/hello-ivy/src/example/Hello.java (original) +++ ant/ivy/core/trunk/src/example/hello-ivy/src/example/Hello.java Sun Mar 2 01:33:32 2008 @@ -28,20 +28,24 @@ /** * Simple example to show how easy it is to retrieve transitive libs with ivy !!! */ -public class Hello { +public final class Hello { public static void main(String[] args) throws Exception { - Option msg = OptionBuilder.withArgName( "msg" ) - .hasArg() - .withDescription( "the message to capitalize" ) - .create( "message" ); + Option msg = OptionBuilder.withArgName("msg") + .hasArg() + .withDescription("the message to capitalize") + .create("message"); Options options = new Options(); options.addOption(msg); CommandLineParser parser = new GnuParser(); - CommandLine line = parser.parse( options, args ); + CommandLine line = parser.parse(options, args); String message = line.getOptionValue("message", "hello ivy !"); System.out.println("standard message : " + message); - System.out.println("capitalized by " + WordUtils.class.getName() + " : " + WordUtils.capitalizeFully(message)); + System.out.println("capitalized by " + WordUtils.class.getName() + + " : " + WordUtils.capitalizeFully(message)); + } + + private Hello() { } } Modified: ant/ivy/core/trunk/src/example/multi-project/projects/console/src/console/Main.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/multi-project/projects/console/src/console/Main.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/multi-project/projects/console/src/console/Main.java (original) +++ ant/ivy/core/trunk/src/example/multi-project/projects/console/src/console/Main.java Sun Mar 2 01:33:32 2008 @@ -24,9 +24,11 @@ import java.lang.reflect.Method; -public class Main { - private static Collection QUIT_COMMANDS = Arrays.asList(new String[] {"quit", "q", "exit"}); - private static Collection HELP_COMMANDS = Arrays.asList(new String[] {"help", "h", "?"}); +public final class Main { + private static final Collection QUIT_COMMANDS = + Arrays.asList(new String[] {"quit", "q", "exit"}); + private static final Collection HELP_COMMANDS = + Arrays.asList(new String[] {"help", "h", "?"}); public static void main(String[] a) throws Exception { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); @@ -49,7 +51,7 @@ try { String[] args = new String[split.length - 1]; System.arraycopy(split, 1, args, 0, args.length); - Class cl = Class.forName(split[0]+".Main"); + Class cl = Class.forName(split[0] + ".Main"); Method m = cl.getMethod("main", new Class[] {String[].class}); m.invoke(null, new Object[] {args}); } catch (Exception ex) { @@ -65,13 +67,16 @@ System.out.println("\thelp: displays this message"); System.out.println("\tlist -dir : list files in given directory"); System.out.println("\tfind -dir -name : list files with given name in given dir"); - System.out.println("\tsizewhere -dir -name : compute total size of files with given name in given dir"); + System.out.println("\tsizewhere -dir -name : " + + "compute total size of files with given name in given dir"); System.out.println("\thelp: displays this message"); } private static void error(String command) { - System.out.println("unknown command "+command); + System.out.println("unknown command " + command); System.out.println("type ? for help"); } - + + private Main() { + } } Modified: ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/FindFile.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/FindFile.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/FindFile.java (original) +++ ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/FindFile.java Sun Mar 2 01:33:32 2008 @@ -21,13 +21,12 @@ import list.ListFile; import java.util.Collection; -import java.util.ArrayList; import java.io.File; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.Predicate; -public class FindFile { +public final class FindFile { static { Version.register("find"); } @@ -39,8 +38,11 @@ private static Collection find(Collection files, final String name) { return CollectionUtils.select(files, new Predicate() { public boolean evaluate(Object o) { - return ((File)o).getName().indexOf(name) != -1; + return ((File) o).getName().indexOf(name) != -1; } }); + } + + private FindFile() { } } Modified: ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/Main.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/Main.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/Main.java (original) +++ ant/ivy/core/trunk/src/example/multi-project/projects/find/src/find/Main.java Sun Mar 2 01:33:32 2008 @@ -30,7 +30,7 @@ import org.apache.commons.cli.Options; import org.apache.commons.cli.ParseException; -public class Main { +public final class Main { private static Options getOptions() { Option dir = OptionBuilder.withArgName("dir") .hasArg() @@ -62,7 +62,7 @@ for (Iterator it = files.iterator(); it.hasNext();) { System.out.println("\t" + it.next() + "\n"); } - } catch(ParseException exp) { + } catch (ParseException exp) { // oops, something went wrong System.err.println("Parsing failed. Reason: " + exp.getMessage()); @@ -70,5 +70,7 @@ formatter.printHelp("find", options); } } - + + private Main() { + } } Modified: ant/ivy/core/trunk/src/example/multi-project/projects/list/src/list/ListFile.java URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/example/multi-project/projects/list/src/list/ListFile.java?rev=632728&r1=632727&r2=632728&view=diff ============================================================================== --- ant/ivy/core/trunk/src/example/multi-project/projects/list/src/list/ListFile.java (original) +++ ant/ivy/core/trunk/src/example/multi-project/projects/list/src/list/ListFile.java Sun Mar 2 01:33:32 2008 @@ -22,7 +22,7 @@ import java.util.ArrayList; import java.io.File; -public class ListFile { +public final class ListFile { static { Version.register("list"); } @@ -36,12 +36,15 @@ private static Collection list(File file, Collection files) { if (file.isDirectory()) { File[] f = file.listFiles(); - for (int i=0; i