which made me comment out the Maven module from my profile as the gen
script failed.
To a certain degree this is a point against having project descriptors
outside of Gump's CVS as a broken descriptor may prevent the entire
Gump run.
Scratching my itch I tried to understand the Jenny code and made it
drop modules with broken descriptors, patch appended. This is not
perfect, something that could be integrated with the nag list would
certainly be better, but I've just started looking into the code.
Stefan
Index: Project.java
===================================================================
RCS file: /home/cvspublic/jakarta-alexandria/proposal/gump/java/Project.java,v
retrieving revision 1.31
diff -u -r1.31 Project.java
--- Project.java 3 Feb 2002 02:25:55 -0000 1.31
+++ Project.java 1 Mar 2002 07:30:55 -0000
@@ -31,18 +31,31 @@
* @param elements list of <project> elements
*/
public static void load(Enumeration elements) throws Exception {
+ Element element = null;
while (elements.hasMoreElements()) {
- new Project((Element)elements.nextElement());
+ try {
+ element = (Element)elements.nextElement();
+ new Project(element);
+ } catch (Throwable t) {
+ System.err.println("Dropping "
+ + element.getAttribute("name")
+ + " because of Exception " + t);
+ }
}
-
+
// Resolve all references so that the XML can be processed in
// one pass.
for (Enumeration e=projects.elements(); e.hasMoreElements();) {
Project p = ((Project)(e.nextElement()));
- p.expandDepends();
- p.resolveProperties();
+ try {
+ p.expandDepends();
+ p.resolveProperties();
+ } catch (Throwable t) {
+ System.err.println("Dropping " + p.get("name")
+ + " because of Exception " + t);
+ }
}
-
+
sort();
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>