Author: alessio.soldano(a)jboss.com
Date: 2009-01-23 10:58:59 -0500 (Fri, 23 Jan 2009)
New Revision: 9111
Modified:
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroConsumerImpl.java
Log:
[JBWS-2450] Enable target 2.1 option when using WSImport
Modified:
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroConsumerImpl.java
===================================================================
---
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroConsumerImpl.java 2009-01-23
15:56:27 UTC (rev 9110)
+++
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/tools/MetroConsumerImpl.java 2009-01-23
15:58:59 UTC (rev 9111)
@@ -177,8 +177,8 @@
args.add(outputDir.getAbsolutePath());
// Always set the target
- if(!target.equals("2.0"))
- throw new IllegalArgumentException("WSConsume (metro) only supports JAX-WS
2.0");
+ if(!target.equals("2.0") && !target.equals("2.1"))
+ throw new IllegalArgumentException("WSConsume (metro) only supports JAX-WS
2.0 and 2.1");
args.add("-target");
args.add(target);
Show replies by date