geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r811331 - in /geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools: Java2WSCommand.java WSDL2JavaCommand.java
Date Fri, 04 Sep 2009 09:54:03 GMT
Author: xuhaihong
Date: Fri Sep  4 09:54:03 2009
New Revision: 811331

URL: http://svn.apache.org/viewvc?rev=811331&view=rev
Log:
GERONIMO-4677 GShell jaxws commands should provide help in a uniform way

Modified:
    geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/Java2WSCommand.java
    geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/WSDL2JavaCommand.java

Modified: geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/Java2WSCommand.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/Java2WSCommand.java?rev=811331&r1=811330&r2=811331&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/Java2WSCommand.java
(original)
+++ geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/Java2WSCommand.java
Fri Sep  4 09:54:03 2009
@@ -38,7 +38,10 @@
     public Object execute(final CommandContext context, final Object... args) throws Exception
{
         init(context);
         
-        String[] arguments = toString(args); 
+        String[] arguments = toString(args);
+        if (arguments.length >= 1 && arguments[0].equalsIgnoreCase("--help"))
{
+            arguments[0] = "-help";
+        }
         return JAXWSToolsCLI.run(JAXWSToolsCLI.Command.JAVA2WS, 
                                  shellInfo.getHomeDir().getAbsolutePath(),
                                  arguments);

Modified: geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/WSDL2JavaCommand.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/WSDL2JavaCommand.java?rev=811331&r1=811330&r2=811331&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/WSDL2JavaCommand.java
(original)
+++ geronimo/server/trunk/plugins/cxf/geronimo-cxf-tools/src/main/java/org/apache/geronimo/cxf/tools/WSDL2JavaCommand.java
Fri Sep  4 09:54:03 2009
@@ -38,7 +38,10 @@
     public Object execute(final CommandContext context, final Object... args) throws Exception
{
         init(context);
         
-        String[] arguments = toString(args); 
+        String[] arguments = toString(args);
+        if (arguments.length >= 1 && arguments[0].equalsIgnoreCase("--help"))
{
+            arguments[0] = "-help";
+        }
         return JAXWSToolsCLI.run(JAXWSToolsCLI.Command.WSDL2JAVA, 
                                  shellInfo.getHomeDir().getAbsolutePath(),
                                  arguments);        



Mime
View raw message