cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r543377 - /incubator/cxf/trunk/tools/javato/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java
Date Fri, 01 Jun 2007 03:23:59 GMT
Author: ema
Date: Thu May 31 20:23:58 2007
New Revision: 543377

URL: http://svn.apache.org/viewvc?view=rev&rev=543377
Log:
Added the flag to specify the port address for java2wsdl tool

Modified:
    incubator/cxf/trunk/tools/javato/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java

Modified: incubator/cxf/trunk/tools/javato/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/javato/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java?view=diff&rev=543377&r1=543376&r2=543377
==============================================================================
--- incubator/cxf/trunk/tools/javato/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java
(original)
+++ incubator/cxf/trunk/tools/javato/src/main/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessor.java
Thu May 31 20:23:58 2007
@@ -129,7 +129,12 @@
         // TODO check if user specify the style from cli arguments
         //      builderFactory.setStyle(style/from/command/line);
         ServiceBuilder builder = builderFactory.newBuilder();
-        builder.setAddress(DEFAULT_ADDRESS);
+        if (context.get(ToolConstants.CFG_ADDRESS) != null) {
+            String address = (String)context.get(ToolConstants.CFG_ADDRESS);
+            builder.setAddress(address);
+        } else {
+            builder.setAddress(DEFAULT_ADDRESS);
+        }
         builder.setTransportId(getTransportId());
         builder.setBus(getBus());
         builder.setBindingConfig(getBindingConfig());



Mime
View raw message