You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2008/03/28 17:35:29 UTC
svn commit: r642284 [4/8] - in /incubator/cxf/branches/2.0.x-fixes:
benchmark/performance/soap_http_doc_lit/
benchmark/performance/soap_http_doc_lit/src/org/apache/cxf/performance/complex_type/client/
benchmark/performance/soap_http_doc_lit/src/org/apa...
Propchange: incubator/cxf/branches/2.0.x-fixes/rt/ws/security/src/test/java/org/apache/cxf/ws/security/wss4j/wsse-request-clean.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/generated/org/apache/cxf/systest/jaxb/service/TestServiceException.java
('svn:executable' removed)
Modified: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java Fri Mar 28 09:33:52 2008
@@ -1,35 +1,35 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.cxf993;
-
-import testnotification.NotificationServicePort;
-
-/**
- * This class was generated by the CXF 2.1-incubator-SNAPSHOT
- * Wed Sep 12 16:41:52 CST 2007
- * Generated source version: 2.1-incubator-SNAPSHOT
- *
- */
-
-public class Cxf993Impl implements NotificationServicePort {
- public String sendNotification(testnotification.SendNotification parameters) {
- return "dummy";
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.cxf993;
+
+import testnotification.NotificationServicePort;
+
+/**
+ * This class was generated by the CXF 2.1-incubator-SNAPSHOT
+ * Wed Sep 12 16:41:52 CST 2007
+ * Generated source version: 2.1-incubator-SNAPSHOT
+ *
+ */
+
+public class Cxf993Impl implements NotificationServicePort {
+ public String sendNotification(testnotification.SendNotification parameters) {
+ return "dummy";
+ }
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Impl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java Fri Mar 28 09:33:52 2008
@@ -1,55 +1,55 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.cxf993;
-
-import java.net.URL;
-import javax.xml.namespace.QName;
-
-import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
-import org.junit.BeforeClass;
-import org.junit.Test;
-import testnotification.NotificationService;
-import testnotification.NotificationServicePort;
-import testnotification.SendNotification;
-
-public class Cxf993Test extends AbstractBusClientServerTestBase {
-
- private final QName serviceName = new QName("urn://testnotification", "NotificationService");
-
- @BeforeClass
- public static void startServers() throws Exception {
- assertTrue("server did not launch correctly", launchServer(Server.class));
- }
-
- @Test
- public void testBasicConnection() throws Exception {
- assertEquals("dummy", getPort().sendNotification(new SendNotification()));
- }
-
- private NotificationServicePort getPort() {
- URL wsdl = getClass().getResource("/wsdl/cxf-993.wsdl");
- assertNotNull("WSDL is null", wsdl);
-
- NotificationService service = new NotificationService(wsdl, serviceName);
- assertNotNull("Service is null ", service);
-
- return service.getNotificationServicePort();
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.cxf993;
+
+import java.net.URL;
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import testnotification.NotificationService;
+import testnotification.NotificationServicePort;
+import testnotification.SendNotification;
+
+public class Cxf993Test extends AbstractBusClientServerTestBase {
+
+ private final QName serviceName = new QName("urn://testnotification", "NotificationService");
+
+ @BeforeClass
+ public static void startServers() throws Exception {
+ assertTrue("server did not launch correctly", launchServer(Server.class));
+ }
+
+ @Test
+ public void testBasicConnection() throws Exception {
+ assertEquals("dummy", getPort().sendNotification(new SendNotification()));
+ }
+
+ private NotificationServicePort getPort() {
+ URL wsdl = getClass().getResource("/wsdl/cxf-993.wsdl");
+ assertNotNull("WSDL is null", wsdl);
+
+ NotificationService service = new NotificationService(wsdl, serviceName);
+ assertNotNull("Service is null ", service);
+
+ return service.getNotificationServicePort();
+ }
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Cxf993Test.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Server.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Server.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Server.java Fri Mar 28 09:33:52 2008
@@ -1,45 +1,45 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.cxf993;
-
-import javax.xml.ws.Endpoint;
-
-import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
-
-public class Server extends AbstractBusTestServerBase {
-
- protected void run() {
- Object implementor = new Cxf993Impl();
- String address = "http://localhost:9018/notification";
- Endpoint.publish(address, implementor);
- }
-
- public static void main(String[] args) {
- try {
- Server s = new Server();
- s.start();
- } catch (Exception ex) {
- ex.printStackTrace();
- System.exit(-1);
- } finally {
- System.out.println("done!");
- }
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.cxf993;
+
+import javax.xml.ws.Endpoint;
+
+import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+
+public class Server extends AbstractBusTestServerBase {
+
+ protected void run() {
+ Object implementor = new Cxf993Impl();
+ String address = "http://localhost:9018/notification";
+ Endpoint.publish(address, implementor);
+ }
+
+ public static void main(String[] args) {
+ try {
+ Server s = new Server();
+ s.start();
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ System.exit(-1);
+ } finally {
+ System.out.println("done!");
+ }
+ }
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/cxf993/Server.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/GreeterImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/GreeterImpl.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/GreeterImpl.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/GreeterImpl.java Fri Mar 28 09:33:52 2008
@@ -1,34 +1,34 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.cxf.systest.fault;
-
-import org.apache.intfault.BadRecordLitFault;
-import org.apache.intfault.types.BareDocumentResponse;
-@javax.jws.WebService(portName = "SoapPort", serviceName = "SOAPService",
- targetNamespace = "http://apache.org/intfault",
- endpointInterface = "org.apache.intfault.Greeter",
- wsdlLocation = "testutils/hello_world_fault.wsdl")
-public class GreeterImpl {
- public BareDocumentResponse testDocLitFault(String in) throws BadRecordLitFault {
- System.out.println("Executing testDocLitFault sayHi\n");
- throw new BadRecordLitFault("int fault", 5);
-
- }
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.systest.fault;
+
+import org.apache.intfault.BadRecordLitFault;
+import org.apache.intfault.types.BareDocumentResponse;
+@javax.jws.WebService(portName = "SoapPort", serviceName = "SOAPService",
+ targetNamespace = "http://apache.org/intfault",
+ endpointInterface = "org.apache.intfault.Greeter",
+ wsdlLocation = "testutils/hello_world_fault.wsdl")
+public class GreeterImpl {
+ public BareDocumentResponse testDocLitFault(String in) throws BadRecordLitFault {
+ System.out.println("Executing testDocLitFault sayHi\n");
+ throw new BadRecordLitFault("int fault", 5);
+
+ }
+
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/GreeterImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/IntFaultClientServerTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/IntFaultClientServerTest.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/IntFaultClientServerTest.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/IntFaultClientServerTest.java Fri Mar 28 09:33:52 2008
@@ -1,58 +1,58 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.fault;
-
-import java.net.URL;
-import javax.xml.namespace.QName;
-
-import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
-import org.apache.intfault.BadRecordLitFault;
-import org.apache.intfault.Greeter;
-import org.apache.intfault.SOAPService;
-
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-public class IntFaultClientServerTest extends AbstractBusClientServerTestBase {
-
- private final QName serviceName = new QName("http://apache.org/intfault",
- "SOAPService");
- @BeforeClass
- public static void startServers() throws Exception {
- assertTrue("server did not launch correctly", launchServer(Server.class));
- }
-
- @Test
- public void testBasicConnection() throws Exception {
- URL wsdl = getClass().getResource("/wsdl/hello_world_fault.wsdl");
- assertNotNull("WSDL is null", wsdl);
-
- SOAPService service = new SOAPService(wsdl, serviceName);
- assertNotNull("Service is null", service);
-
- Greeter greeter = service.getSoapPort();
- try {
- greeter.testDocLitFault("fault");
- } catch (BadRecordLitFault e) {
- assertEquals(5, e.getFaultInfo());
- }
-
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.fault;
+
+import java.net.URL;
+import javax.xml.namespace.QName;
+
+import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
+import org.apache.intfault.BadRecordLitFault;
+import org.apache.intfault.Greeter;
+import org.apache.intfault.SOAPService;
+
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+public class IntFaultClientServerTest extends AbstractBusClientServerTestBase {
+
+ private final QName serviceName = new QName("http://apache.org/intfault",
+ "SOAPService");
+ @BeforeClass
+ public static void startServers() throws Exception {
+ assertTrue("server did not launch correctly", launchServer(Server.class));
+ }
+
+ @Test
+ public void testBasicConnection() throws Exception {
+ URL wsdl = getClass().getResource("/wsdl/hello_world_fault.wsdl");
+ assertNotNull("WSDL is null", wsdl);
+
+ SOAPService service = new SOAPService(wsdl, serviceName);
+ assertNotNull("Service is null", service);
+
+ Greeter greeter = service.getSoapPort();
+ try {
+ greeter.testDocLitFault("fault");
+ } catch (BadRecordLitFault e) {
+ assertEquals(5, e.getFaultInfo());
+ }
+
+ }
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/IntFaultClientServerTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/Server.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/Server.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/Server.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/Server.java Fri Mar 28 09:33:52 2008
@@ -1,46 +1,46 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.systest.fault;
-
-import javax.xml.ws.Endpoint;
-
-import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
-
-public class Server extends AbstractBusTestServerBase {
- protected void run() {
-
- GreeterImpl implementor = new GreeterImpl();
- String address = "http://localhost:9000/SoapContext/SoapPort";
- Endpoint.publish(address, implementor);
-
- }
-
- public static void main(String[] args) {
- try {
- Server s = new Server();
- s.start();
- } catch (Exception ex) {
- ex.printStackTrace();
- System.exit(-1);
- } finally {
- System.out.println("done!");
- }
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.systest.fault;
+
+import javax.xml.ws.Endpoint;
+
+import org.apache.cxf.testutil.common.AbstractBusTestServerBase;
+
+public class Server extends AbstractBusTestServerBase {
+ protected void run() {
+
+ GreeterImpl implementor = new GreeterImpl();
+ String address = "http://localhost:9000/SoapContext/SoapPort";
+ Endpoint.publish(address, implementor);
+
+ }
+
+ public static void main(String[] args) {
+ try {
+ Server s = new Server();
+ s.start();
+ } catch (Exception ex) {
+ ex.printStackTrace();
+ System.exit(-1);
+ } finally {
+ System.out.println("done!");
+ }
+ }
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/fault/Server.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/mtom/Data.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/mtom/EchoService.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/mtom/MtomPolicyTest.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/mtom/MtomServerTest.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/mtom/mtom-policy-optional.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/mtom/mtom-policy.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/mtom/nonmtom.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/nested_callback/CallbackClientServerTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/nested_callback/CallbackImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/nested_callback/Server.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/nested_callback/ServerImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/AbstractServletTest.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/CXFServletTest.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/SpringServletTest.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/spring-js.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/spring.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/web-external.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/web-js.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/web-spring.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/servlet/web.xml
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/soap/SoapActionGreeterImpl.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/soap/SoapActionTest.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/swa/ClientServerSwaTest.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/swa/Server.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/swa/SwAServiceImpl.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/ws/policy/AddressingInlinePolicyTest.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/ws/policy/addr-inline-policy.xml
('svn:executable' removed)
Modified: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/ws/policy/rmwsdl_server.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/ws/policy/rmwsdl_server.xml?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/ws/policy/rmwsdl_server.xml (original)
+++ incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/ws/policy/rmwsdl_server.xml Fri Mar 28 09:33:52 2008
@@ -83,4 +83,4 @@
<wsrmp:BaseRetransmissionInterval Milliseconds="30000"/>
</wsrmp:RMAssertion>
</wsp:Policy>
-</beans>
\ No newline at end of file
+</beans>
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/ws/policy/rmwsdl_server.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/java/org/apache/cxf/systest/wsdl/TestCrossSchemaImports.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/systests/src/test/resources/crossSchemaBeans.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/systests/src/test/resources/crossSchemaBeans.xml?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/systests/src/test/resources/crossSchemaBeans.xml (original)
+++ incubator/cxf/branches/2.0.x-fixes/systests/src/test/resources/crossSchemaBeans.xml Fri Mar 28 09:33:52 2008
@@ -29,14 +29,14 @@
<!-- CXF -->
<import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
- <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-jaxws.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-local.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-http.xml" />
<!-- Services -->
- <jaxws:server id="JaxbTestServer"
- serviceClass="org.apache.type_test.doc.TypeTestPortType"
+ <jaxws:server id="JaxbTestServer"
+ serviceClass="org.apache.type_test.doc.TypeTestPortType"
address="local://TestService">
</jaxws:server>
</beans>
Propchange: incubator/cxf/branches/2.0.x-fixes/systests/src/test/resources/crossSchemaBeans.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/cxf/branches/2.0.x-fixes/testutils/src/main/java/org/apache/hello_world_doc_lit/GreeterImplDoc.java
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/testutils/src/main/resources/wsdl/hello_world_soap_action.wsdl
('svn:executable' removed)
Propchange: incubator/cxf/branches/2.0.x-fixes/testutils/src/main/resources/wsdl/swa-mime.wsdl
('svn:executable' removed)
Modified: incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java Fri Mar 28 09:33:52 2008
@@ -1,106 +1,106 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.tools.common.model;
-
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-public final class JAnnotation {
-
- private Class type;
- private List<JAnnotationElement> elements = new ArrayList<JAnnotationElement>();
- private Set<String> imports = new HashSet<String>();
-
- public JAnnotation() {
- // empty
- }
-
- public JAnnotation(Class t) {
- setType(t);
- }
-
- public Set<String> getImports() {
- prompt();
- for (JAnnotationElement element : elements) {
- imports.addAll(element.getImports());
- }
- return imports;
- }
-
- private void prompt() {
- toString();
- }
-
- public List<JAnnotationElement> getElements() {
- return elements;
- }
-
- public void addElement(JAnnotationElement element) {
- if (elements.contains(element)) {
- return;
- }
- JAnnotationElement e = getElementByName(element.getName());
- if (e != null) {
- elements.remove(e);
- }
- elements.add(element);
- }
-
- private JAnnotationElement getElementByName(String name) {
- if (name != null) {
- for (JAnnotationElement e : elements) {
- if (name.equals(e.getName())) {
- return e;
- }
- }
- }
- return null;
- }
-
- public Class getType() {
- return type;
- }
-
- public void setType(final Class newType) {
- this.type = newType;
- imports.add(type.getName());
- }
-
- public String toString() {
- StringBuffer sb = new StringBuffer();
- sb.append("@");
- sb.append(type.getSimpleName());
- if (getElements().isEmpty()) {
- return sb.toString();
- }
-
- sb.append("(");
- for (int i = 0; i < elements.size(); i++) {
- sb.append(elements.get(i));
- if (i < elements.size() - 1) {
- sb.append(", ");
- }
- }
- sb.append(")");
- return sb.toString();
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.tools.common.model;
+
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+public final class JAnnotation {
+
+ private Class type;
+ private List<JAnnotationElement> elements = new ArrayList<JAnnotationElement>();
+ private Set<String> imports = new HashSet<String>();
+
+ public JAnnotation() {
+ // empty
+ }
+
+ public JAnnotation(Class t) {
+ setType(t);
+ }
+
+ public Set<String> getImports() {
+ prompt();
+ for (JAnnotationElement element : elements) {
+ imports.addAll(element.getImports());
+ }
+ return imports;
+ }
+
+ private void prompt() {
+ toString();
+ }
+
+ public List<JAnnotationElement> getElements() {
+ return elements;
+ }
+
+ public void addElement(JAnnotationElement element) {
+ if (elements.contains(element)) {
+ return;
+ }
+ JAnnotationElement e = getElementByName(element.getName());
+ if (e != null) {
+ elements.remove(e);
+ }
+ elements.add(element);
+ }
+
+ private JAnnotationElement getElementByName(String name) {
+ if (name != null) {
+ for (JAnnotationElement e : elements) {
+ if (name.equals(e.getName())) {
+ return e;
+ }
+ }
+ }
+ return null;
+ }
+
+ public Class getType() {
+ return type;
+ }
+
+ public void setType(final Class newType) {
+ this.type = newType;
+ imports.add(type.getName());
+ }
+
+ public String toString() {
+ StringBuffer sb = new StringBuffer();
+ sb.append("@");
+ sb.append(type.getSimpleName());
+ if (getElements().isEmpty()) {
+ return sb.toString();
+ }
+
+ sb.append("(");
+ for (int i = 0; i < elements.size(); i++) {
+ sb.append(elements.get(i));
+ if (i < elements.size() - 1) {
+ sb.append(", ");
+ }
+ }
+ sb.append(")");
+ return sb.toString();
+ }
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotation.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java Fri Mar 28 09:33:52 2008
@@ -1,156 +1,156 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.tools.common.model;
-
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-public final class JAnnotationElement {
- private String name;
- private Object value;
- private boolean isPrimitive;
-
- private Set<String> imports = new HashSet<String>();
-
- public JAnnotationElement() {
- }
-
- public JAnnotationElement(String n, Object v) {
- this(n, v, false);
- }
-
- public JAnnotationElement(String n, Object v, boolean primitive) {
- this.name = n;
- this.value = v;
- this.isPrimitive = primitive;
- }
-
- public Set<String> getImports() {
- return imports;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(final String newName) {
- this.name = newName;
- }
-
- public Object getValue() {
- return value;
- }
-
- public void setValue(final Object newValue) {
- this.value = newValue;
- }
-
- public String toString() {
- StringBuffer sb = new StringBuffer();
- if (name != null) {
- sb.append(name);
- }
- if (value != null) {
- if (name != null) {
- sb.append(" = ");
- }
- if (value instanceof List) {
- List list = (List) value;
- sb.append("{");
- for (int i = 0; i < list.size(); i++) {
- appendValue(sb, list.get(i));
- if (i < list.size() - 1) {
- sb.append(",");
- }
- }
- sb.append("}");
- } else {
- appendValue(sb, value);
- }
- }
- return sb.toString();
- }
-
- private void appendValue(final StringBuffer sb, final Object obj) {
- if (obj instanceof String) {
- getStringValue(sb, obj);
- } else if (obj instanceof Class) {
- Class clz = (Class) obj;
- if (containsSameClassName(clz) && !imports.contains(clz.getName())) {
- sb.append(clz.getName());
- } else {
- sb.append(clz.getSimpleName());
- imports.add(clz.getName());
- }
- sb.append(".class");
- } else if (obj instanceof JAnnotation) {
- sb.append(obj);
- imports.addAll(((JAnnotation)obj).getImports());
- } else if (obj instanceof Enum) {
- appendEnumValue(sb, obj);
- } else if (obj instanceof JavaType) {
- JavaType type = (JavaType)obj;
- sb.append(type.getClassName());
- sb.append(".class");
- } else if (isPrimitive) {
- sb.append(obj);
- }
- }
-
- private void appendEnumValue(final StringBuffer sb, final Object obj) {
- Enum e = (Enum) obj;
-
- String clzName = e.getClass().getName();
-
- imports.add(obj.getClass().getName().replace("$", "."));
-
- sb.append(clzName.substring(clzName.lastIndexOf(".") + 1).replace("$", "."));
- sb.append(".");
- sb.append(e.name());
- }
-
- private void getStringValue(final StringBuffer sb, final Object obj) {
- sb.append("\"");
- sb.append(obj);
- sb.append("\"");
- }
-
- private boolean containsSameClassName(Class clz) {
- return imports.contains(clz.getName());
- }
-
- public int hashCode() {
- return this.toString().hashCode();
- }
-
- public boolean equals(Object obj) {
- if (obj == null) {
- return false;
- }
-
- if (!(obj instanceof JAnnotationElement)) {
- return false;
- }
-
- JAnnotationElement element = (JAnnotationElement) obj;
- return element.toString().equals(this.toString());
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.tools.common.model;
+
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+public final class JAnnotationElement {
+ private String name;
+ private Object value;
+ private boolean isPrimitive;
+
+ private Set<String> imports = new HashSet<String>();
+
+ public JAnnotationElement() {
+ }
+
+ public JAnnotationElement(String n, Object v) {
+ this(n, v, false);
+ }
+
+ public JAnnotationElement(String n, Object v, boolean primitive) {
+ this.name = n;
+ this.value = v;
+ this.isPrimitive = primitive;
+ }
+
+ public Set<String> getImports() {
+ return imports;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(final String newName) {
+ this.name = newName;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public void setValue(final Object newValue) {
+ this.value = newValue;
+ }
+
+ public String toString() {
+ StringBuffer sb = new StringBuffer();
+ if (name != null) {
+ sb.append(name);
+ }
+ if (value != null) {
+ if (name != null) {
+ sb.append(" = ");
+ }
+ if (value instanceof List) {
+ List list = (List) value;
+ sb.append("{");
+ for (int i = 0; i < list.size(); i++) {
+ appendValue(sb, list.get(i));
+ if (i < list.size() - 1) {
+ sb.append(",");
+ }
+ }
+ sb.append("}");
+ } else {
+ appendValue(sb, value);
+ }
+ }
+ return sb.toString();
+ }
+
+ private void appendValue(final StringBuffer sb, final Object obj) {
+ if (obj instanceof String) {
+ getStringValue(sb, obj);
+ } else if (obj instanceof Class) {
+ Class clz = (Class) obj;
+ if (containsSameClassName(clz) && !imports.contains(clz.getName())) {
+ sb.append(clz.getName());
+ } else {
+ sb.append(clz.getSimpleName());
+ imports.add(clz.getName());
+ }
+ sb.append(".class");
+ } else if (obj instanceof JAnnotation) {
+ sb.append(obj);
+ imports.addAll(((JAnnotation)obj).getImports());
+ } else if (obj instanceof Enum) {
+ appendEnumValue(sb, obj);
+ } else if (obj instanceof JavaType) {
+ JavaType type = (JavaType)obj;
+ sb.append(type.getClassName());
+ sb.append(".class");
+ } else if (isPrimitive) {
+ sb.append(obj);
+ }
+ }
+
+ private void appendEnumValue(final StringBuffer sb, final Object obj) {
+ Enum e = (Enum) obj;
+
+ String clzName = e.getClass().getName();
+
+ imports.add(obj.getClass().getName().replace("$", "."));
+
+ sb.append(clzName.substring(clzName.lastIndexOf(".") + 1).replace("$", "."));
+ sb.append(".");
+ sb.append(e.name());
+ }
+
+ private void getStringValue(final StringBuffer sb, final Object obj) {
+ sb.append("\"");
+ sb.append(obj);
+ sb.append("\"");
+ }
+
+ private boolean containsSameClassName(Class clz) {
+ return imports.contains(clz.getName());
+ }
+
+ public int hashCode() {
+ return this.toString().hashCode();
+ }
+
+ public boolean equals(Object obj) {
+ if (obj == null) {
+ return false;
+ }
+
+ if (!(obj instanceof JAnnotationElement)) {
+ return false;
+ }
+
+ JAnnotationElement element = (JAnnotationElement) obj;
+ return element.toString().equals(this.toString());
+ }
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/tools/common/src/main/java/org/apache/cxf/tools/common/model/JAnnotationElement.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/A.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/A.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/A.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/A.java Fri Mar 28 09:33:52 2008
@@ -1,24 +1,24 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.tools.common.model;
-
-public class A {
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.tools.common.model;
+
+public class A {
+
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/A.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/JAnnotationTest.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/JAnnotationTest.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/JAnnotationTest.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/JAnnotationTest.java Fri Mar 28 09:33:52 2008
@@ -1,72 +1,72 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.cxf.tools.common.model;
-
-import javax.jws.WebParam;
-import javax.jws.WebParam.Mode;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-
-import org.junit.Assert;
-import org.junit.Test;
-
-public class JAnnotationTest extends Assert {
- @Test
- public void testSimpleForm() {
- JAnnotation annotation = new JAnnotation(WebService.class);
- assertEquals("@WebService", annotation.toString());
- }
-
- @Test
- public void testStringForm() {
- JAnnotation annotation = new JAnnotation(WebService.class);
- annotation.addElement(new JAnnotationElement("name", "AddNumbersPortType"));
- annotation.addElement(new JAnnotationElement("targetNamespace", "http://example.com/"));
- assertEquals("@WebService(name = \"AddNumbersPortType\", targetNamespace = \"http://example.com/\")",
- annotation.toString());
- }
-
- @Test
- public void testEnum() {
- JAnnotation annotation = new JAnnotation(SOAPBinding.class);
- annotation.addElement(new JAnnotationElement("parameterStyle",
- SOAPBinding.ParameterStyle.BARE));
- assertEquals("@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)", annotation.toString());
- }
-
-
- @Test
- public void testPrimitive() {
- JAnnotation annotation = new JAnnotation(WebParam.class);
- annotation.addElement(new JAnnotationElement("header", true, true));
- annotation.addElement(new JAnnotationElement("mode", Mode.INOUT));
- assertEquals("@WebParam(header = true, mode = WebParam.Mode.INOUT)", annotation.toString());
- }
-
- @Test
- public void testAddSame() {
- JAnnotation annotation = new JAnnotation(WebParam.class);
- annotation.addElement(new JAnnotationElement("header", true, true));
- annotation.addElement(new JAnnotationElement("header", false, true));
- annotation.addElement(new JAnnotationElement("mode", Mode.INOUT));
- annotation.addElement(new JAnnotationElement("mode", Mode.OUT));
- assertEquals("@WebParam(header = false, mode = WebParam.Mode.OUT)", annotation.toString());
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.cxf.tools.common.model;
+
+import javax.jws.WebParam;
+import javax.jws.WebParam.Mode;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+public class JAnnotationTest extends Assert {
+ @Test
+ public void testSimpleForm() {
+ JAnnotation annotation = new JAnnotation(WebService.class);
+ assertEquals("@WebService", annotation.toString());
+ }
+
+ @Test
+ public void testStringForm() {
+ JAnnotation annotation = new JAnnotation(WebService.class);
+ annotation.addElement(new JAnnotationElement("name", "AddNumbersPortType"));
+ annotation.addElement(new JAnnotationElement("targetNamespace", "http://example.com/"));
+ assertEquals("@WebService(name = \"AddNumbersPortType\", targetNamespace = \"http://example.com/\")",
+ annotation.toString());
+ }
+
+ @Test
+ public void testEnum() {
+ JAnnotation annotation = new JAnnotation(SOAPBinding.class);
+ annotation.addElement(new JAnnotationElement("parameterStyle",
+ SOAPBinding.ParameterStyle.BARE));
+ assertEquals("@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)", annotation.toString());
+ }
+
+
+ @Test
+ public void testPrimitive() {
+ JAnnotation annotation = new JAnnotation(WebParam.class);
+ annotation.addElement(new JAnnotationElement("header", true, true));
+ annotation.addElement(new JAnnotationElement("mode", Mode.INOUT));
+ assertEquals("@WebParam(header = true, mode = WebParam.Mode.INOUT)", annotation.toString());
+ }
+
+ @Test
+ public void testAddSame() {
+ JAnnotation annotation = new JAnnotation(WebParam.class);
+ annotation.addElement(new JAnnotationElement("header", true, true));
+ annotation.addElement(new JAnnotationElement("header", false, true));
+ annotation.addElement(new JAnnotationElement("mode", Mode.INOUT));
+ annotation.addElement(new JAnnotationElement("mode", Mode.OUT));
+ assertEquals("@WebParam(header = false, mode = WebParam.Mode.OUT)", annotation.toString());
+ }
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/tools/common/src/test/java/org/apache/cxf/tools/common/model/JAnnotationTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/pom.xml
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/pom.xml?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/pom.xml (original)
+++ incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/pom.xml Fri Mar 28 09:33:52 2008
@@ -1,245 +1,245 @@
-<!--
- Licensed to the Apache Software Foundation (ASF) under one
- or more contributor license agreements. See the NOTICE file
- distributed with this work for additional information
- regarding copyright ownership. The ASF licenses this file
- to you under the Apache License, Version 2.0 (the
- "License"); you may not use this file except in compliance
- with the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing,
- software distributed under the License is distributed on an
- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- KIND, either express or implied. See the License for the
- specific language governing permissions and limitations
- under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-tools-java2ws</artifactId>
- <packaging>jar</packaging>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-tools-java2ws</artifactId>
+ <packaging>jar</packaging>
<version>2.0.3-incubator-SNAPSHOT</version>
- <name>Apache CXF Command Line Tools JavaTo WS</name>
- <url>http://cwiki.apache.org/CXF</url>
-
- <parent>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-parent</artifactId>
+ <name>Apache CXF Command Line Tools JavaTo WS</name>
+ <url>http://cwiki.apache.org/CXF</url>
+
+ <parent>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-parent</artifactId>
<version>2.0.3-incubator-SNAPSHOT</version>
- <relativePath>../../parent/pom.xml</relativePath>
- </parent>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-tools-common</artifactId>
- <version>${project.version}</version>
- </dependency>
-
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-api</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-simple</artifactId>
- <version>${project.version}</version>
- </dependency>
-
-
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-tools-wsdlto-core</artifactId>
- <version>${project.version}</version>
- </dependency>
-
-
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-tools-wsdlto-databinding-jaxb</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-tools-wsdlto-frontend-jaxws</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>javax.xml.bind</groupId>
- <artifactId>jaxb-api</artifactId>
- </dependency>
-
-
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
-
-
- <dependency>
- <groupId>org.easymock</groupId>
- <artifactId>easymockclassextension</artifactId>
- <scope>test</scope>
- </dependency>
-
-
- <dependency>
- <groupId>asm</groupId>
- <artifactId>asm</artifactId>
- <scope>test</scope>
- </dependency>
-
-
- <dependency>
- <groupId>wsdl4j</groupId>
- <artifactId>wsdl4j</artifactId>
- </dependency>
-
-
- <dependency>
- <groupId>javax.xml.soap</groupId>
- <artifactId>saaj-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.codehaus.woodstox</groupId>
- <artifactId>wstx-asl</artifactId>
- <scope>runtime</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-core</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-databinding-aegis</artifactId>
- <version>${project.version}</version>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-bindings-xml</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
-
- <dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-xjc</artifactId>
- </dependency>
- <dependency>
- <groupId>com.sun.xml.bind</groupId>
- <artifactId>jaxb-impl</artifactId>
- </dependency>
-
- <dependency>
- <groupId>javax.xml.ws</groupId>
- <artifactId>jaxws-api</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-testutils</artifactId>
- <version>${project.version}</version>
- <scope>test</scope>
- </dependency>
-
-
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-codegen-plugin</artifactId>
- <version>${project.version}</version>
- <executions>
- <execution>
- <id>generate-test-sources</id>
- <phase>generate-test-sources</phase>
- <configuration>
- <testSourceRoot>${basedir}/target/generated/src/test/java</testSourceRoot>
-
- <wsdlOptions>
- <wsdlOption>
- <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_async.wsdl</wsdl>
- </wsdlOption>
- <wsdlOption>
- <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/doc_wrapped_simple.wsdl</wsdl>
- </wsdlOption>
- <wsdlOption>
- <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_doc_lit.wsdl</wsdl>
- </wsdlOption>
- <wsdlOption>
- <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_doc_wrapped_bare.wsdl</wsdl>
- </wsdlOption>
- <wsdlOption>
- <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_rpc_lit.wsdl</wsdl>
- </wsdlOption>
- <wsdlOption>
- <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_soap12.wsdl</wsdl>
- </wsdlOption>
- <wsdlOption>
- <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_bare.wsdl</wsdl>
- <extraargs>
- <!--arg>-verbose</arg-->
- </extraargs>
- </wsdlOption>
- <wsdlOption>
- <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_fault.wsdl</wsdl>
- </wsdlOption>
- </wsdlOptions>
- </configuration>
- <goals>
- <goal>wsdl2java</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.0</version>
- <executions>
- <execution>
- <id>add-source</id>
- <phase>generate-test-sources</phase>
- <goals>
- <goal>add-test-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${basedir}/src/test/generated</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
-
- </plugins>
- </build>
- <scm>
- <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/cxf/branches/2.0.x-fixes/tools/javato/ws</connection>
- <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/cxf/branches/2.0.x-fixes/tools/javato/ws</developerConnection>
- </scm>
-
-</project>
+ <relativePath>../../parent/pom.xml</relativePath>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-tools-common</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-simple</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-tools-wsdlto-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-tools-wsdlto-databinding-jaxb</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-tools-wsdlto-frontend-jaxws</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.xml.bind</groupId>
+ <artifactId>jaxb-api</artifactId>
+ </dependency>
+
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>org.easymock</groupId>
+ <artifactId>easymockclassextension</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>asm</groupId>
+ <artifactId>asm</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+
+ <dependency>
+ <groupId>wsdl4j</groupId>
+ <artifactId>wsdl4j</artifactId>
+ </dependency>
+
+
+ <dependency>
+ <groupId>javax.xml.soap</groupId>
+ <artifactId>saaj-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.codehaus.woodstox</groupId>
+ <artifactId>wstx-asl</artifactId>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-core</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-databinding-aegis</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-jaxws</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-bindings-xml</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-xjc</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.bind</groupId>
+ <artifactId>jaxb-impl</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.xml.ws</groupId>
+ <artifactId>jaxws-api</artifactId>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-testutils</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-codegen-plugin</artifactId>
+ <version>${project.version}</version>
+ <executions>
+ <execution>
+ <id>generate-test-sources</id>
+ <phase>generate-test-sources</phase>
+ <configuration>
+ <testSourceRoot>${basedir}/target/generated/src/test/java</testSourceRoot>
+
+ <wsdlOptions>
+ <wsdlOption>
+ <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_async.wsdl</wsdl>
+ </wsdlOption>
+ <wsdlOption>
+ <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/doc_wrapped_simple.wsdl</wsdl>
+ </wsdlOption>
+ <wsdlOption>
+ <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_doc_lit.wsdl</wsdl>
+ </wsdlOption>
+ <wsdlOption>
+ <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_doc_wrapped_bare.wsdl</wsdl>
+ </wsdlOption>
+ <wsdlOption>
+ <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_rpc_lit.wsdl</wsdl>
+ </wsdlOption>
+ <wsdlOption>
+ <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_soap12.wsdl</wsdl>
+ </wsdlOption>
+ <wsdlOption>
+ <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_bare.wsdl</wsdl>
+ <extraargs>
+ <!--arg>-verbose</arg-->
+ </extraargs>
+ </wsdlOption>
+ <wsdlOption>
+ <wsdl>${basedir}/src/test/resources/java2wsdl_wsdl/hello_world_fault.wsdl</wsdl>
+ </wsdlOption>
+ </wsdlOptions>
+ </configuration>
+ <goals>
+ <goal>wsdl2java</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>1.0</version>
+ <executions>
+ <execution>
+ <id>add-source</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>add-test-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${basedir}/src/test/generated</source>
+ </sources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/cxf/branches/2.0.x-fixes/tools/javato/ws</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/cxf/branches/2.0.x-fixes/tools/javato/ws</developerConnection>
+ </scm>
+
+</project>
Propchange: incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWS.java
URL: http://svn.apache.org/viewvc/incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWS.java?rev=642284&r1=642283&r2=642284&view=diff
==============================================================================
--- incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWS.java (original)
+++ incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWS.java Fri Mar 28 09:33:52 2008
@@ -1,88 +1,88 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.cxf.tools.java2ws;
-
-import java.util.Arrays;
-import java.util.List;
-
-import org.apache.cxf.common.util.StringUtils;
-import org.apache.cxf.tools.common.toolspec.ToolRunner;
-
-public class JavaToWS {
-
- private String[] args;
-
- public JavaToWS() {
- args = new String[0];
- }
-
- public JavaToWS(String pargs[]) {
- args = pargs;
- }
-
- public static void main(String[] args) {
- JavaToWS j2w = new JavaToWS(args);
- try {
- j2w.run();
- } catch (Exception ex) {
- System.err.println("JavaToWS Error: " + ex.getMessage());
- System.err.println();
- if (j2w.isVerbose()) {
- ex.printStackTrace();
- }
- if (j2w.isExitOnFinish()) {
- System.exit(1);
- }
- }
- }
-
- public boolean isVerbose() {
- return isSet(new String[] {"-V", "-verbose"});
- }
-
- private boolean isSet(String[] keys) {
- if (args == null) {
- return false;
- }
- List<String> pargs = Arrays.asList(args);
-
- for (String key : keys) {
- if (pargs.contains(key)) {
- return true;
- }
- }
- return false;
- }
-
- private void run() throws Exception {
- ToolRunner.runTool(JavaToWSContainer.class, JavaToWSContainer.class
- .getResourceAsStream("java2ws.xml"), false, args);
- }
-
- private boolean isExitOnFinish() {
- String exit = System.getProperty("exitOnFinish");
- if (StringUtils.isEmpty(exit)) {
- return false;
- }
- return "YES".equalsIgnoreCase(exit) || "TRUE".equalsIgnoreCase(exit);
- }
-
-
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.cxf.tools.java2ws;
+
+import java.util.Arrays;
+import java.util.List;
+
+import org.apache.cxf.common.util.StringUtils;
+import org.apache.cxf.tools.common.toolspec.ToolRunner;
+
+public class JavaToWS {
+
+ private String[] args;
+
+ public JavaToWS() {
+ args = new String[0];
+ }
+
+ public JavaToWS(String pargs[]) {
+ args = pargs;
+ }
+
+ public static void main(String[] args) {
+ JavaToWS j2w = new JavaToWS(args);
+ try {
+ j2w.run();
+ } catch (Exception ex) {
+ System.err.println("JavaToWS Error: " + ex.getMessage());
+ System.err.println();
+ if (j2w.isVerbose()) {
+ ex.printStackTrace();
+ }
+ if (j2w.isExitOnFinish()) {
+ System.exit(1);
+ }
+ }
+ }
+
+ public boolean isVerbose() {
+ return isSet(new String[] {"-V", "-verbose"});
+ }
+
+ private boolean isSet(String[] keys) {
+ if (args == null) {
+ return false;
+ }
+ List<String> pargs = Arrays.asList(args);
+
+ for (String key : keys) {
+ if (pargs.contains(key)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ private void run() throws Exception {
+ ToolRunner.runTool(JavaToWSContainer.class, JavaToWSContainer.class
+ .getResourceAsStream("java2ws.xml"), false, args);
+ }
+
+ private boolean isExitOnFinish() {
+ String exit = System.getProperty("exitOnFinish");
+ if (StringUtils.isEmpty(exit)) {
+ return false;
+ }
+ return "YES".equalsIgnoreCase(exit) || "TRUE".equalsIgnoreCase(exit);
+ }
+
+
+
+}
Propchange: incubator/cxf/branches/2.0.x-fixes/tools/javato/ws/src/main/java/org/apache/cxf/tools/java2ws/JavaToWS.java
------------------------------------------------------------------------------
svn:eol-style = native