The following patch corrects the meta-info generator task to return the
supplied classname as opposed to throwing an exception.  In practice the
supplied classname may be perfectly valid but not within the scope of
the classloader that is handling the source scanning.

This patch should correct a number of project failures that exist in the
current gump build.

Stephen.



Index:
runtime/tools/src/java/org/apache/avalon/meta/info/builder/tags/Abstract
Tag.java
===================================================================
---
tools/src/java/org/apache/avalon/meta/info/builder/tags/AbstractTag.java
(revision 36791)
+++
tools/src/java/org/apache/avalon/meta/info/builder/tags/AbstractTag.java
(working copy)
@@ -204,10 +204,7 @@
         }
         if( resolvedType == null )
         {
-            final String message =
-              "Unable to find type " + type
-              + " in class " + getJavaClass().getFullyQualifiedName();
-            throw new RuntimeException( message );
+            return type;
         }
         else
         {




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to