Browse Source

fix gump build - I assume that gump has switched JDK version recently to make this break

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@379303 13f79535-47bb-0310-9956-ffa450edef68
master
Kevin Jackson 19 years ago
parent
commit
912d5406cf
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java

+ 4
- 4
proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java View File

@@ -3,7 +3,7 @@
*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights
* Copyright (c) 1999-2002, 2006 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -124,11 +124,11 @@ public class TaskDiscovery extends Task implements ProjectComponentFactory
disc.addClassLoader( JDKHooks.getJDKHooks().getThreadContextClassLoader() );
disc.addClassLoader( this.getClass().getClassLoader() );
ResourceIterator enum = disc.findResources(RESOURCE_NAME);
ResourceIterator ri = disc.findResources(RESOURCE_NAME);
Vector vector = new Vector();
while (enum.hasNext()) {
Resource resourceInfo = enum.nextResource();
while (ri.hasNext()) {
Resource resourceInfo = ri.nextResource();
vector.add(resourceInfo);
System.out.println("Found " + resourceInfo);



Loading…
Cancel
Save