You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by ke...@apache.org on 2006/02/21 02:09:55 UTC

svn commit: r379303 - /ant/core/trunk/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java

Author: kevj
Date: Mon Feb 20 17:09:54 2006
New Revision: 379303

URL: http://svn.apache.org/viewcvs?rev=379303&view=rev
Log:
fix gump build - I assume that gump has switched JDK version recently to make this break

Modified:
    ant/core/trunk/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java

Modified: ant/core/trunk/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java?rev=379303&r1=379302&r2=379303&view=diff
==============================================================================
--- ant/core/trunk/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java (original)
+++ ant/core/trunk/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java Mon Feb 20 17:09:54 2006
@@ -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 @@
         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);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: svn commit: r379303 - /ant/core/trunk/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java

Posted by Steve Loughran <st...@apache.org>.
Stefan Bodewig wrote:
> On Tue, 21 Feb 2006, <ke...@apache.org> wrote:
> 
> 
>>I assume that gump has switched JDK version recently to make this
>>break
> 
> 
> Yes, (finally) switched to JDK 1.5 since JUnit 4.0 now is CVS HEAD and
> requires annotation support at compile time.

Aah. I was wondering what fixed Junit.

I'm not overwhelmed with the changes to JUnit, or the way the update to 
CVS went out. But am glad that we are running on 1.5, cos now I can 
bring up a lot more work onto gump.

-steve

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: svn commit: r379303 - /ant/core/trunk/proposal/embed/src/java/org/apache/tools/ant/taskdefs/optional/TaskDiscovery.java

Posted by Stefan Bodewig <bo...@apache.org>.
On Tue, 21 Feb 2006, <ke...@apache.org> wrote:

> I assume that gump has switched JDK version recently to make this
> break

Yes, (finally) switched to JDK 1.5 since JUnit 4.0 now is CVS HEAD and
requires annotation support at compile time.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org