Author: heiko.braun(a)jboss.com
Date: 2008-06-06 15:27:32 -0400 (Fri, 06 Jun 2008)
New Revision: 7418
Modified:
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroProviderImpl.java
Log:
Propagate exceptions
Modified:
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroProviderImpl.java
===================================================================
---
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroProviderImpl.java 2008-06-06
19:25:57 UTC (rev 7417)
+++
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroProviderImpl.java 2008-06-06
19:27:32 UTC (rev 7418)
@@ -181,8 +181,13 @@
args.add(endpointClass.getCanonicalName());
WsgenTool tool = new WsgenTool(messageStream);
- tool.run(args.toArray(new String[0]));
+ boolean success = tool.run(args.toArray(new String[0]));
+ if(!success)
+ {
+ throw new RuntimeException("Wsgen invocation failed. Try the
'-verbose' switch for more information");
+ }
+
}
finally{
Thread.currentThread().setContextClassLoader(oldLoader);
Show replies by date