From 94b28e89af68de7dec9bdc7b64ba86f4891d2840 Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 1 Oct 2010 07:31:43 +0000 Subject: Move archetypes into maven folder git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1003412 13f79535-47bb-0310-9956-ffa450edef68 --- sca-java-2.x/trunk/archetypes/binding/pom.xml | 54 ----- .../META-INF/maven/archetype-metadata.xml | 61 ------ .../archetype-resources/META-INF/MANIFEST.MF | 17 -- .../src/main/resources/archetype-resources/pom.xml | 86 -------- .../src/main/java/__bindingName__Binding.java | 52 ----- .../main/java/__bindingName__BindingFactory.java | 35 ---- .../__bindingName__BindingProviderFactory.java | 50 ----- .../__bindingName__ReferenceBindingProvider.java | 58 ------ .../runtime/__bindingName__ReferenceInvoker.java | 56 ----- .../__bindingName__ServiceBindingProvider.java | 60 ------ .../runtime/__bindingName__ServiceInvoker.java | 43 ---- .../main/java/runtime/__bindingName__Stash.java | 47 ----- .../__package__.__bindingName__BindingFactory | 20 -- ...ca.contribution.processor.StAXArtifactProcessor | 20 -- ...any.sca.contribution.processor.ValidationSchema | 19 -- ...che.tuscany.sca.provider.BindingProviderFactory | 20 -- .../src/main/resources/binding-__artifactId__.xsd | 37 ---- .../src/test/java/helloworld/HelloWorldClient.java | 36 ---- .../src/test/java/helloworld/HelloWorldImpl.java | 31 --- .../test/java/helloworld/HelloWorldService.java | 31 --- .../java/test/__bindingName__BindingTestCase.java | 55 ----- .../src/test/resources/helloworld.composite | 39 ---- .../resources/projects/basic/archetype.properties | 7 - .../src/test/resources/projects/basic/goal.txt | 0 .../contribution-jar/META-INF/MANIFEST.MF | 11 - .../trunk/archetypes/contribution-jar/pom.xml | 51 ----- .../META-INF/maven/archetype-metadata.xml | 36 ---- .../main/resources/META-INF/maven/archetype.xml | 30 --- .../src/main/resources/archetype-resources/pom.xml | 81 -------- .../src/main/java/HelloworldImpl.java | 36 ---- .../src/main/java/HelloworldService.java | 28 --- .../main/resources/META-INF/sca-contribution.xml | 23 --- .../src/main/resources/helloworld.composite | 29 --- .../archetypes/contribution-zip-discriptor/pom.xml | 33 --- .../assemblies/tuscany-zip-contribution.xml | 40 ---- .../contribution-zip/META-INF/MANIFEST.MF | 11 - .../trunk/archetypes/contribution-zip/pom.xml | 51 ----- .../META-INF/maven/archetype-metadata.xml | 36 ---- .../main/resources/META-INF/maven/archetype.xml | 30 --- .../src/main/resources/archetype-resources/pom.xml | 153 -------------- .../archetype-resources/src/main/java/AddImpl.java | 38 ---- .../src/main/java/AddService.java | 25 --- .../main/resources/META-INF/sca-contribution.xml | 23 --- .../src/main/resources/add.composite | 29 --- sca-java-2.x/trunk/archetypes/pom.xml | 52 ----- .../quickstart-bpel/META-INF/MANIFEST.MF | 11 - .../trunk/archetypes/quickstart-bpel/pom.xml | 51 ----- .../META-INF/maven/archetype-metadata.xml | 43 ---- .../main/resources/META-INF/maven/archetype.xml | 33 --- .../src/main/resources/archetype-resources/pom.xml | 182 ---------------- .../src/main/java/HelloworldService.java | 28 --- .../src/main/resources/helloworld.bpel | 66 ------ .../src/main/resources/helloworld.wsdl | 82 -------- .../src/main/webapp/WEB-INF/web.composite | 37 ---- .../src/main/webapp/WEB-INF/web.xml | 41 ---- .../archetype-resources/src/main/webapp/hello.jsp | 36 ---- .../trunk/archetypes/quickstart-jsf/pom.xml | 51 ----- .../META-INF/maven/archetype-metadata.xml | 44 ---- .../main/resources/META-INF/maven/archetype.xml | 38 ---- .../src/main/resources/archetype-resources/pom.xml | 154 -------------- .../main/java/myfaces/HelloWorldController.java | 64 ------ .../src/main/java/sca/HelloworldService.java | 28 --- .../src/main/java/sca/HelloworldServiceImpl.java | 30 --- .../src/main/webapp/WEB-INF/faces-config.xml | 53 ----- .../src/main/webapp/WEB-INF/web.composite | 35 ---- .../src/main/webapp/WEB-INF/web.xml | 230 --------------------- .../src/main/webapp/helloWorld.jsp | 37 ---- .../archetype-resources/src/main/webapp/index.jsp | 22 -- .../archetype-resources/src/main/webapp/page2.jsp | 35 ---- .../quickstart-jsonp/META-INF/MANIFEST.MF | 11 - .../trunk/archetypes/quickstart-jsonp/pom.xml | 51 ----- .../META-INF/maven/archetype-metadata.xml | 42 ---- .../main/resources/META-INF/maven/archetype.xml | 31 --- .../src/main/resources/archetype-resources/pom.xml | 154 -------------- .../src/main/java/HelloworldImpl.java | 27 --- .../src/main/java/HelloworldService.java | 28 --- .../src/main/webapp/WEB-INF/web.composite | 32 --- .../src/main/webapp/WEB-INF/web.xml | 43 ---- .../archetype-resources/src/main/webapp/hello.jsp | 36 ---- .../quickstart-stripes/META-INF/MANIFEST.MF | 11 - .../trunk/archetypes/quickstart-stripes/pom.xml | 51 ----- .../META-INF/maven/archetype-metadata.xml | 44 ---- .../main/resources/META-INF/maven/archetype.xml | 38 ---- .../src/main/resources/archetype-resources/pom.xml | 124 ----------- .../src/main/java/sca/HelloworldService.java | 28 --- .../src/main/java/sca/HelloworldServiceImpl.java | 31 --- .../main/java/stripes/action/BaseActionBean.java | 36 ---- .../main/java/stripes/action/HomeActionBean.java | 48 ----- .../src/main/resources/StripesResources.properties | 77 ------- .../src/main/resources/log4j.properties | 51 ----- .../src/main/webapp/WEB-INF/jsp/home.jsp | 29 --- .../src/main/webapp/WEB-INF/jsp/layout.jsp | 42 ---- .../src/main/webapp/WEB-INF/jsp/taglibs.jsp | 32 --- .../src/main/webapp/WEB-INF/web.composite | 34 --- .../src/main/webapp/WEB-INF/web.xml | 68 ------ .../archetype-resources/src/main/webapp/index.html | 27 --- .../archetypes/quickstart/META-INF/MANIFEST.MF | 11 - sca-java-2.x/trunk/archetypes/quickstart/pom.xml | 51 ----- .../META-INF/maven/archetype-metadata.xml | 42 ---- .../main/resources/META-INF/maven/archetype.xml | 31 --- .../src/main/resources/archetype-resources/pom.xml | 143 ------------- .../src/main/java/HelloworldImpl.java | 27 --- .../src/main/java/HelloworldService.java | 25 --- .../src/main/webapp/WEB-INF/web.composite | 34 --- .../src/main/webapp/WEB-INF/web.xml | 43 ---- .../archetype-resources/src/main/webapp/hello.jsp | 36 ---- 106 files changed, 4880 deletions(-) delete mode 100644 sca-java-2.x/trunk/archetypes/binding/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/__bindingName__Binding.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/__bindingName__BindingFactory.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__BindingProviderFactory.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ReferenceBindingProvider.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ReferenceInvoker.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ServiceBindingProvider.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ServiceInvoker.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__Stash.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/__package__.__bindingName__BindingFactory delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/binding-__artifactId__.xsd delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldClient.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldImpl.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldService.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/test/__bindingName__BindingTestCase.java delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/resources/helloworld.composite delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/test/resources/projects/basic/archetype.properties delete mode 100644 sca-java-2.x/trunk/archetypes/binding/src/test/resources/projects/basic/goal.txt delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip-discriptor/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite delete mode 100644 sca-java-2.x/trunk/archetypes/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/META-INF/MANIFEST.MF delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp (limited to 'sca-java-2.x/trunk') diff --git a/sca-java-2.x/trunk/archetypes/binding/pom.xml b/sca-java-2.x/trunk/archetypes/binding/pom.xml deleted file mode 100644 index 7f38f83b6c..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/pom.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-binding-archetype - maven-archetype - Create a Tuscany binding extension project - Create a Tuscany binding extension project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-5 - - - - - - - maven-archetype-plugin - 2.0-alpha-5 - true - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 403803551b..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - - - - src/main/java - - **/*.java - - - - src/main/resources - - **/*.* - - - - src/test/java - - **/*.java - - - - src/test/resources - - **/*.* - - - - META-INF - - MANIFEST.MF - - - - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/META-INF/MANIFEST.MF deleted file mode 100644 index 2985b8c822..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/META-INF/MANIFEST.MF +++ /dev/null @@ -1,17 +0,0 @@ -Manifest-Version: 1.0 -SCA-Version: 1.1 -Bundle-Name: Apache Tuscany SCA ${bindingName} Binding -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA ${bindingName} Binding -Import-Package: org.apache.tuscany.sca.assembly;version="2.0.0", - org.apache.tuscany.sca.core;version="2.0.0", - org.apache.tuscany.sca.interfacedef;version="2.0.0", - org.apache.tuscany.sca.invocation;version="2.0.0", - org.apache.tuscany.sca.provider;version="2.0.0", - org.apache.tuscany.sca.runtime;version="2.0.0" -Bundle-SymbolicName: org.apache.tuscany.sca.binding.${artifactId} -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index e038506cbd..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,86 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-modules - 2.0-SNAPSHOT - ../pom.xml - - - binding-${artifactId} - ${groupId} - ${version} - Apache Tuscany SCA ${bindingName} Binding Extension - - - - - org.apache.tuscany.sca - tuscany-assembly-xml - 2.0-SNAPSHOT - provided - - - - org.apache.tuscany.sca - tuscany-host-http - 2.0-SNAPSHOT - provided - - - - javax.servlet - servlet-api - 2.5 - provided - - - - org.apache.tuscany.sca - tuscany-host-jetty - 2.0-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-node-impl - 2.0-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 2.0-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - test - - - - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/__bindingName__Binding.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/__bindingName__Binding.java deleted file mode 100644 index d9cbdb954d..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/__bindingName__Binding.java +++ /dev/null @@ -1,52 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}; - -import javax.xml.namespace.QName; - -import org.apache.tuscany.sca.provider.BaseBindingImpl; - -/** - * Represents a binding to a ${bindingName} service. - */ -public class ${bindingName}Binding extends BaseBindingImpl { - - public static final QName TYPE = new QName(SCA11_TUSCANY_NS, "binding.${artifactId}"); - - private String someAttr; - - public ${bindingName}Binding() { - } - - public QName getType() { - return TYPE; - } - - public String getSomeAttr() { - return someAttr; - } - - public void setSomeAttr(String someAttr) { - this.someAttr = someAttr; - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/__bindingName__BindingFactory.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/__bindingName__BindingFactory.java deleted file mode 100644 index ae1cd88745..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/__bindingName__BindingFactory.java +++ /dev/null @@ -1,35 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}; - - -/** - * Factory implementation to create ${bindingName} Models - */ -public class ${bindingName}BindingFactory { - - public ${bindingName}Binding create${bindingName}Binding() { - return new ${bindingName}Binding(); - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__BindingProviderFactory.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__BindingProviderFactory.java deleted file mode 100644 index 93c6bf3c04..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__BindingProviderFactory.java +++ /dev/null @@ -1,50 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import ${package}.${bindingName}Binding; -import org.apache.tuscany.sca.core.ExtensionPointRegistry; -import org.apache.tuscany.sca.provider.BindingProviderFactory; -import org.apache.tuscany.sca.provider.ReferenceBindingProvider; -import org.apache.tuscany.sca.provider.ServiceBindingProvider; -import org.apache.tuscany.sca.runtime.RuntimeEndpoint; -import org.apache.tuscany.sca.runtime.RuntimeEndpointReference; - -public class ${bindingName}BindingProviderFactory implements BindingProviderFactory<${bindingName}Binding> { - - public ${bindingName}BindingProviderFactory(ExtensionPointRegistry extensionPoints) { - } - - public Class<${bindingName}Binding> getModelType() { - return ${bindingName}Binding.class; - } - - public ReferenceBindingProvider createReferenceBindingProvider(RuntimeEndpointReference endpoint) { - return new ${bindingName}ReferenceBindingProvider(endpoint); - } - - public ServiceBindingProvider createServiceBindingProvider(RuntimeEndpoint endpoint) { - return new ${bindingName}ServiceBindingProvider(endpoint); - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ReferenceBindingProvider.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ReferenceBindingProvider.java deleted file mode 100644 index dc2991014e..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ReferenceBindingProvider.java +++ /dev/null @@ -1,58 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.interfacedef.Operation; -import org.apache.tuscany.sca.invocation.Invoker; -import org.apache.tuscany.sca.provider.ReferenceBindingProvider; - -public class ${bindingName}ReferenceBindingProvider implements ReferenceBindingProvider { - - private EndpointReference endpoint; - private InterfaceContract contract; - - public ${bindingName}ReferenceBindingProvider(EndpointReference endpoint) { - this.endpoint = endpoint; - } - - public Invoker createInvoker(Operation operation) { - return new ${bindingName}ReferenceInvoker(operation, endpoint); - } - - public void start() { - } - - public void stop() { - } - - public InterfaceContract getBindingInterfaceContract() { - return contract; - } - - public boolean supportsOneWayInvocation() { - return false; - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ReferenceInvoker.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ReferenceInvoker.java deleted file mode 100644 index d3e2bd1812..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ReferenceInvoker.java +++ /dev/null @@ -1,56 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import org.apache.tuscany.sca.assembly.EndpointReference; -import org.apache.tuscany.sca.interfacedef.Operation; -import org.apache.tuscany.sca.invocation.Invoker; -import org.apache.tuscany.sca.invocation.Message; - -public class ${bindingName}ReferenceInvoker implements Invoker { - - protected Operation operation; - protected EndpointReference endpoint; - - public ${bindingName}ReferenceInvoker(Operation operation, EndpointReference endpoint) { - this.operation = operation; - this.endpoint = endpoint; - } - - public Message invoke(Message msg) { - try { - - return doInvoke(msg); - - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - public Message doInvoke(Message msg) { - // Add some code here to make an invocation over the ${bindingName} binding protocol - // For this sample we'll just get it from the static stash - ${bindingName}ServiceInvoker fi = ${bindingName}Stash.getService(endpoint.getBinding().getURI()); - return fi.invokeService(msg); - } -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ServiceBindingProvider.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ServiceBindingProvider.java deleted file mode 100644 index 59d41091d8..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ServiceBindingProvider.java +++ /dev/null @@ -1,60 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import ${package}.${bindingName}Binding; -import org.apache.tuscany.sca.interfacedef.InterfaceContract; -import org.apache.tuscany.sca.provider.ServiceBindingProvider; -import org.apache.tuscany.sca.runtime.RuntimeEndpoint; - -public class ${bindingName}ServiceBindingProvider implements ServiceBindingProvider { - - private RuntimeEndpoint endpoint; - private InterfaceContract contract; - - public ${bindingName}ServiceBindingProvider(RuntimeEndpoint endpoint) { - this.endpoint = endpoint; - } - - public void start() { - // add some code here to start the service - - // For this sample we'll just share it in a static - ${bindingName}Stash.addService(endpoint.getBinding().getURI(), new ${bindingName}ServiceInvoker(endpoint)); - - System.out.println("someAttr=" + ((${bindingName}Binding)endpoint.getBinding()).getSomeAttr()); - } - - public void stop() { - ${bindingName}Stash.removeService(endpoint.getBinding().getURI()); - } - - public InterfaceContract getBindingInterfaceContract() { - return contract; - } - - public boolean supportsOneWayInvocation() { - return false; - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ServiceInvoker.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ServiceInvoker.java deleted file mode 100644 index 8ea20d41ed..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__ServiceInvoker.java +++ /dev/null @@ -1,43 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import org.apache.tuscany.sca.invocation.Message; -import org.apache.tuscany.sca.runtime.RuntimeEndpoint; - -public class ${bindingName}ServiceInvoker { - - private RuntimeEndpoint wire; - - public ${bindingName}ServiceInvoker(RuntimeEndpoint wire) { - this.wire = wire; - } - - /** - * Send the request down the wire to invoke the service - */ - public Message invokeService(Message msg) { - return wire.invoke(msg); - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__Stash.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__Stash.java deleted file mode 100644 index 416a10e7b1..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/java/runtime/__bindingName__Stash.java +++ /dev/null @@ -1,47 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.runtime; - -import java.util.HashMap; -import java.util.Map; - -/** - * Simplistic static Map to share service endpoints with references - */ -public class ${bindingName}Stash { - - private static Map services = new HashMap(); - - public static void addService(String uri, ${bindingName}ServiceInvoker ${bindingName}ServiceInvoker) { - services.put(uri, ${bindingName}ServiceInvoker); - } - - public static ${bindingName}ServiceInvoker getService(String uri) { - return services.get(uri); - } - - public static void removeService(String uri) { - services.remove(uri); - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/__package__.__bindingName__BindingFactory b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/__package__.__bindingName__BindingFactory deleted file mode 100644 index 3759b19fa0..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/__package__.__bindingName__BindingFactory +++ /dev/null @@ -1,20 +0,0 @@ -# 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. - -# Implementation class for model factory -${package}.${bindingName}BindingFactory - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor deleted file mode 100644 index eb49133022..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor +++ /dev/null @@ -1,20 +0,0 @@ -# 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. - -# Implementation class for the artifact processor extension -org.apache.tuscany.sca.assembly.xml.DefaultBeanModelProcessor;qname=http://tuscany.apache.org/xmlns/sca/1.1#binding.${artifactId},model=${package}.${bindingName}Binding,factory=${package}.${bindingName}BindingFactory - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema deleted file mode 100644 index c33264f2a4..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.ValidationSchema +++ /dev/null @@ -1,19 +0,0 @@ -# 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. -# -binding-${artifactId}.xsd - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory deleted file mode 100644 index 3c0cfbc6d9..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.BindingProviderFactory +++ /dev/null @@ -1,20 +0,0 @@ -# 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. - -# Implementation class for the binding extension -${package}.runtime.${bindingName}BindingProviderFactory;model=${package}.${bindingName}Binding - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/binding-__artifactId__.xsd b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/binding-__artifactId__.xsd deleted file mode 100644 index 74f853e424..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/main/resources/binding-__artifactId__.xsd +++ /dev/null @@ -1,37 +0,0 @@ -#set( $bindingNameLC = ${bindingName} ) - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldClient.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldClient.java deleted file mode 100644 index de982cefc1..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldClient.java +++ /dev/null @@ -1,36 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 helloworld; - -import org.oasisopen.sca.annotation.Reference; - -public class HelloWorldClient implements HelloWorldService { - - @Reference - public HelloWorldService ref; - - public String sayHello(String name) { - return ref.sayHello(name); - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldImpl.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldImpl.java deleted file mode 100644 index 521f6828ce..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 helloworld; - - -public class HelloWorldImpl implements HelloWorldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldService.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldService.java deleted file mode 100644 index eca0df1543..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/helloworld/HelloWorldService.java +++ /dev/null @@ -1,31 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloWorldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/test/__bindingName__BindingTestCase.java b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/test/__bindingName__BindingTestCase.java deleted file mode 100644 index 61847e5eda..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/java/test/__bindingName__BindingTestCase.java +++ /dev/null @@ -1,55 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 test; - -import helloworld.HelloWorldService; -import junit.framework.Assert; - -import org.apache.tuscany.sca.node.Node; -import org.apache.tuscany.sca.node.NodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ${bindingName}BindingTestCase { - - private static Node node; - - @Test - public void testSayHello() { - HelloWorldService service = node.getService(HelloWorldService.class, "HelloWorldClient/HelloWorldService"); - Assert.assertEquals("Hello boo", service.sayHello("boo")); - } - - @BeforeClass - public static void init() throws Exception { - node = NodeFactory.newInstance().createNode("helloworld.composite").start(); - } - - @AfterClass - public static void destroy() throws Exception { - if (node != null) { - node.stop(); - } - } - -} diff --git a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/resources/helloworld.composite b/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/resources/helloworld.composite deleted file mode 100644 index f0e6150c10..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/main/resources/archetype-resources/src/test/resources/helloworld.composite +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/test/resources/projects/basic/archetype.properties b/sca-java-2.x/trunk/archetypes/binding/src/test/resources/projects/basic/archetype.properties deleted file mode 100644 index c9c09f9596..0000000000 --- a/sca-java-2.x/trunk/archetypes/binding/src/test/resources/projects/basic/archetype.properties +++ /dev/null @@ -1,7 +0,0 @@ -#Sat Sep 04 08:10:22 BST 2010 -version=0.1-SNAPSHOT -groupId=archetype.it -package=archetype.it.basic -artifactId=basic -bindingName=Basic - diff --git a/sca-java-2.x/trunk/archetypes/binding/src/test/resources/projects/basic/goal.txt b/sca-java-2.x/trunk/archetypes/binding/src/test/resources/projects/basic/goal.txt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/archetypes/contribution-jar/META-INF/MANIFEST.MF deleted file mode 100644 index 1e2a0fbb4d..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Contribution JAR -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.contribution.jar -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/pom.xml b/sca-java-2.x/trunk/archetypes/contribution-jar/pom.xml deleted file mode 100644 index 0b568cb425..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-contribution-jar - maven-archetype - Create an SCA JAR contribution project - Create an SCA JAR contribution project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-3 - - - - - maven-archetype-plugin - 2.0-alpha-3 - true - - - - - diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 46c5cd6dca..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/resources - - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 69c3fb5ac9..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - tuscany-contribution-jar - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - src/main/hello.composite - src/main/webapp/META-INF/sca-contribution.xml - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 8b2ad3d3a9..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,81 +0,0 @@ - - - - 4.0.0 - - ${groupId} - ${artifactId} - ${version} - ${artifactId} - - - - - org.oasis-open.sca.j - sca-caa-apis - 1.1-CD04 - provided - - - - junit - junit - 4.8.1 - test - - - - - - install - ${artifactId} - - - - org.apache.maven.plugins - maven-compiler-plugin - - 1.6 - 1.6 - true - true - - - - org.apache.tuscany.maven.plugins - maven-tuscany-plugin - - - - - - - - - oasis.svn - http://tools.oasis-open.org/version-control/svn/sca-j/Release/ - - true - - - - - diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java deleted file mode 100644 index 26237c105c..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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 ${package}; - -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.EagerInit; - -@Scope("COMPOSITE") @EagerInit -public class HelloworldImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println(sayHello("world")); - } -} diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java deleted file mode 100644 index d705564334..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/java/HelloworldService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 ${package}; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 960d6a90ae..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite b/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite deleted file mode 100644 index 35970f63ca..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-jar/src/main/resources/archetype-resources/src/main/resources/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip-discriptor/pom.xml b/sca-java-2.x/trunk/archetypes/contribution-zip-discriptor/pom.xml deleted file mode 100644 index c3a1f9bb5f..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip-discriptor/pom.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-zip-contribution-descriptor - Tuscany SCA ZIP contribution Shared Assembly Descriptor - - - diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml b/sca-java-2.x/trunk/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml deleted file mode 100644 index a672d2920d..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip-discriptor/src/main/resources/assemblies/tuscany-zip-contribution.xml +++ /dev/null @@ -1,40 +0,0 @@ - - - - zip-contribution - - zip - - false - - - false - runtime - lib - false - - - - - ${project.build.outputDirectory} - / - - - diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/archetypes/contribution-zip/META-INF/MANIFEST.MF deleted file mode 100644 index b5be2573dd..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Contribution ZIP -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA ZIP Contribution Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.contribution.zip -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/pom.xml b/sca-java-2.x/trunk/archetypes/contribution-zip/pom.xml deleted file mode 100644 index 012bac379f..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-contribution-zip - maven-archetype - Create an SCA ZIP contribution project - Create an SCA ZIP contribution project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-3 - - - - - maven-archetype-plugin - 2.0-alpha-3 - true - - - - - diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 46c5cd6dca..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/resources - - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index c17535e802..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - tuscany-contribution-zip - - src/main/java/AddImpl.java - src/main/java/AddService.java - - - src/main/resources/add.composite - src/main/resources/META-INF/sca-contribution.xml - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 873b45ee39..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,153 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - jar - ${version} - #literal() - quickstart - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - provided - - - - - commons-io - commons-io - 1.4 - - - - commons-math - commons-math - 1.2 - - - - - junit - junit - 4.8.1 - test - - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - maven-assembly-plugin - 2.2-beta-3 - - - org.apache.tuscany.sca - tuscany-zip-contribution-descriptor - ${tuscany.version} - - - - - make-assembly - package - - single - - - false - - - tuscany-zip-contribution.xml - - - - - - - - org.apache.tuscany.maven.plugins - maven-tuscany-plugin - - - - - 2.0-SNAPSHOT - - #end - diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java b/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java deleted file mode 100644 index 48b62dbb6f..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 ${package}; - -import org.apache.commons.math.util.MathUtils; - -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; -import org.oasisopen.sca.annotation.EagerInit; - -@Scope("COMPOSITE") @EagerInit -public class AddImpl implements AddService { - - public int add(int x, int y) { - return MathUtils.addAndCheck(x, y); - } - - @Init - public void init() { - System.out.println("1 + 2 = " + add(1, 2)); - } -} diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java b/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java deleted file mode 100644 index 4b25553893..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/java/AddService.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 ${package}; - -public interface AddService { - - int add(int x, int y); - -} diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 960d6a90ae..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite b/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite deleted file mode 100644 index 3dc8175bd7..0000000000 --- a/sca-java-2.x/trunk/archetypes/contribution-zip/src/main/resources/archetype-resources/src/main/resources/add.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/pom.xml b/sca-java-2.x/trunk/archetypes/pom.xml deleted file mode 100644 index 0fcd66a6fb..0000000000 --- a/sca-java-2.x/trunk/archetypes/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../pom.xml - - tuscany-archetype - pom - Apache Tuscany SCA Maven Archetypes - - - - default - - true - - - - contribution-jar - contribution-zip - contribution-zip-discriptor - quickstart - quickstart-jsf - quickstart-stripes - quickstart-bpel - binding - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/archetypes/quickstart-bpel/META-INF/MANIFEST.MF deleted file mode 100644 index 29e03eb396..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Quickstart Archetype -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart-bpel/pom.xml deleted file mode 100644 index f2821d98bd..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-quickstart-bpel - maven-archetype - Create an SCA Webapp project using BPEL - Create an SCA Webapp project using BPEL - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-3 - - - - - maven-archetype-plugin - 2.0-alpha-3 - true - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 47c2f5dc10..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/resources - - **/* - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index c466a1b3f5..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - tuscany-quickstart - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - src/main/resources/helloworld.bpel - src/main/resources/helloworld.wsdl - src/main/webapp/hello.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 30be6b66e3..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,182 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - #literal() - quickstart - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - ${tuscany.version} - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-bpel-runtime - ${tuscany.version} - runtime - - - - - junit - junit - 4.8.1 - test - - - - - org.mortbay.jetty - jetty - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-util - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-management - ${jetty.version} - provided - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - compile - - unpack - - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - 1.1.1 - zip - false - ${project.build.directory}/classes - **/* - - - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - - - openjpa.QueryCompilationCache - false - - - - ${basedir}/src/main - ${basedir}/src/main/webapp/WEB-INF/web.xml - - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-SNAPSHOT - 6.1.18 - - #end - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java deleted file mode 100644 index a99cc7b032..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/java/HelloworldService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 ${package}; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String hello(String name); - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel deleted file mode 100644 index 53e77c5be0..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl deleted file mode 100644 index 46cf381577..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/resources/helloworld.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 4d3d532184..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 922d275b17..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - ${artifactId} - - - tuscany.${artifactId} - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany.${artifactId} - /* - - - - hello.jsp - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp deleted file mode 100644 index 7aeaf81b33..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-bpel/src/main/resources/archetype-resources/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +0,0 @@ -<%-- - * 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. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

${artifactId}

- - Calling HelloworldService sayHello("world") returns: - -

- - <%= service.hello("world") %> - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsf/pom.xml deleted file mode 100644 index 09436e86ab..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-quickstart-jsf - maven-archetype - Create a Tuscany SCA and JSF project - Create a Tuscany SCA and JSF project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-4 - - - - - maven-archetype-plugin - 2.0-alpha-4 - true - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index f15a12fb88..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.html - **/*.composite - - - - src/main/resources - - **/*.properties - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index b5295d8a73..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - quickstart-stripes - - src/main/java/sample/stripes/action/BaseActionBean.java - src/main/java/sample/stripes/action/HomeActionBean.java - src/main/java/sample/sca/HelloworldService.java - src/main/java/sample/sca/HelloworldServiceImpl.java - - - src/main/resources/log4j.properties - src/main/resources/StripesResources.properties - src/main/webapp/index.html - src/main/webapp/WEB-INF/jsp/home.jsp - src/main/webapp/WEB-INF/jsp/layout.jsp - src/main/webapp/WEB-INF/jsp/taglibs.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index f252e602ab..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - #literal() - quickstart-jsf - - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - - - org.apache.tuscany.sca - tuscany-myfaces - ${tuscany.version} - - - - - org.apache.myfaces.core - myfaces-api - 1.2.2 - compile - - - - org.apache.myfaces.core - myfaces-impl - 1.2.2 - compile - - - - org.apache.myfaces.tomahawk - tomahawk - 1.1.6 - runtime - - - javax.servlet - jstl - - - - - - jstl - jstl - 1.2 - runtime - - - - junit - junit - 4.0 - test - - - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-SNAPSHOT - 1.5 - 6.1.4 - - #end - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java deleted file mode 100644 index e38c84feda..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/myfaces/HelloWorldController.java +++ /dev/null @@ -1,64 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.myfaces; - -import org.oasisopen.sca.annotation.Reference; - -import ${package}.sca.HelloworldService; - -/** - * A typical simple backing bean, that is backed to helloworld.jsp - * - */ -public class HelloWorldController { - - //properties - private String name; - - @Reference - private HelloworldService service; - - /** - * default empty constructor - */ - public HelloWorldController(){ - } - - //-------------------getter & setter - public String getName() { - return name; - } - public void setName(String name) { - this.name = name; - } - - /** - * Method that is backed to a submit button of a form. - */ - public String send(){ - - // invoke the SCA reference - name = service.sayHello(name); - - return "success"; - } -} \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java deleted file mode 100644 index d6cb7bbcf2..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java +++ /dev/null @@ -1,28 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.sca; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java deleted file mode 100644 index ec9bfd7221..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java +++ /dev/null @@ -1,30 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.sca; - -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml deleted file mode 100644 index 3b732de8af..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml +++ /dev/null @@ -1,53 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - - - helloWorld - ${package}.myfaces.HelloWorldController - request - - - - - /helloWorld.jsp - - success - /page2.jsp - - - - - - /page2.jsp - - back - /helloWorld.jsp - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 7e18dc9308..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 48b73fe68a..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,230 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - ${artifactId} - - - - org.apache.tuscany.sca.host.webapp.TuscanyContextListener - - - org.apache.myfaces.config.annotation.LifecycleProvider - org.apache.tuscany.sca.myfaces.TuscanyAnnotationLifecycleProvider - - - - - State saving method: "client" or "server" (= default) - See JSF Specification 2.5.3 - javax.faces.STATE_SAVING_METHOD - client - - - Only applicable if state saving method is "server" (= default). - Defines the amount (default = 20) of the latest views are stored in session. - org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION - 20 - - - Only applicable if state saving method is "server" (= default). - If true (default) the state will be serialized to a byte stream before it - is written to the session. - If false the state will not be serialized to a byte stream. - org.apache.myfaces.SERIALIZE_STATE_IN_SESSION - true - - - Only applicable if state saving method is "server" (= default) and if - org.apache.myfaces.SERIALIZE_STATE_IN_SESSION is true (= default) - If true (default) the serialized state will be compressed before it - is written to the session. If false the state will not be compressed. - org.apache.myfaces.COMPRESS_STATE_IN_SESSION - true - - - This parameter tells MyFaces if javascript code should be allowed in the - rendered HTML output. - If javascript is allowed, command_link anchors will have javascript code - that submits the corresponding form. - If javascript is not allowed, the state saving info and nested parameters - will be added as url parameters. - Default: "true" - org.apache.myfaces.ALLOW_JAVASCRIPT - true - - - org.apache.myfaces.DETECT_JAVASCRIPT - false - - - If true, rendered HTML code will be formatted, so that it is "human readable". - i.e. additional line separators and whitespace will be written, that do not - influence the HTML code. - Default: "true" - org.apache.myfaces.PRETTY_HTML - true - - - If true, a javascript function will be rendered that is able to restore the - former vertical scroll on every request. Convenient feature if you have pages - with long lists and you do not want the browser page to always jump to the top - if you trigger a link or button action that stays on the same page. - Default: "false" - org.apache.myfaces.AUTO_SCROLL - true - - - - Used for encrypting view state. Only relevant for client side - state saving. See MyFaces wiki/web site documentation for instructions - on how to configure an application for diffenent encryption strengths. - - org.apache.myfaces.SECRET - NzY1NDMyMTA= - - - - - Validate managed beans, navigation rules and ensure that forms are not nested. - - org.apache.myfaces.VALIDATE - true - - - - - Treat readonly same as if disabled attribute was set for select elements. - - org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS - true - - - - - Use the defined class as the class which will be called when a resource is added to the - ExtensionFilter handling. Using StreamingAddResource here helps with performance. If you want to add - custom components and want to use the ExtensionFilter, you need to provide your custom implementation here. - - org.apache.myfaces.ADD_RESOURCE_CLASS - org.apache.myfaces.renderkit.html.util.DefaultAddResource - - - - - Virtual path in the URL which triggers loading of resources for the MyFaces extended components - in the ExtensionFilter. - - org.apache.myfaces.RESOURCE_VIRTUAL_PATH - /faces/myFacesExtensionResource - - - - - Check if the extensions-filter has been properly configured. - - org.apache.myfaces.CHECK_EXTENSIONS_FILTER - true - - - - - Define partial state saving as true/false. - - javax.faces.PARTIAL_STATE_SAVING_METHOD - false - - - - - extensionsFilter - org.apache.myfaces.webapp.filter.ExtensionsFilter - - Set the size limit for uploaded files. - Format: 10 - 10 bytes - 10k - 10 KB - 10m - 10 MB - 1g - 1 GB - uploadMaxFileSize - 100m - - - Set the threshold size - files - below this limit are stored in memory, files above - this limit are stored on disk. - - Format: 10 - 10 bytes - 10k - 10 KB - 10m - 10 MB - 1g - 1 GB - uploadThresholdSize - 100k - - - - - extensionsFilter - *.jsf - - - extensionsFilter - /faces/* - - - - - org.apache.myfaces.webapp.StartupServletContextListener - - - - - Faces Servlet - javax.faces.webapp.FacesServlet - 1 - - - - - Faces Servlet - *.jsf - - - - - index.jsp - index.html - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp deleted file mode 100644 index 4a3197ec4f..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/helloWorld.jsp +++ /dev/null @@ -1,37 +0,0 @@ - -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> - - - Hello World - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp deleted file mode 100644 index 768aa2408b..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/index.jsp +++ /dev/null @@ -1,22 +0,0 @@ - -<%@ page session="false"%> -<% -response.sendRedirect("helloWorld.jsf"); -%> \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp b/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp deleted file mode 100644 index 1c096f66c6..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsf/src/main/resources/archetype-resources/src/main/webapp/page2.jsp +++ /dev/null @@ -1,35 +0,0 @@ - -<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> -<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> - - - Hello World - - - - -

- - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF deleted file mode 100644 index 29e03eb396..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Quickstart Archetype -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/pom.xml deleted file mode 100644 index e2e101aae0..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-quickstart-jsonp - maven-archetype - Create a Tuscany SCA webapp project using the JSONP binding - Create a Tuscany SCA webapp project using the JSONP binding - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-4 - - - - - maven-archetype-plugin - 2.0-alpha-4 - true - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 450e33afd5..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Y - - - - - src/main/java - - **/*.java - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 1bf4353502..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - tuscany-quickstart - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - src/main/webapp/hello.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 8fc4bde625..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,154 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - quickstart-jsonp - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} -#if(${includeTuscanyRuntime} == "Y") - compile -#else - provided -#end - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - ${tuscany.version} -#if( $includeTuscanyRuntime == "Y") - runtime -#else - provided -#end - - - - org.apache.tuscany.sca - tuscany-binding-jsonp-runtime - ${tuscany.version} -#if( $includeTuscanyRuntime == "Y") - runtime -#else - provided -#end - - - - - junit - junit - 4.8.1 - test - - - - - org.mortbay.jetty - jetty - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-util - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-management - ${jetty.version} - provided - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-SNAPSHOT - 6.1.18 - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java deleted file mode 100644 index 2491816adc..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 ${package}; - -public class HelloworldImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java deleted file mode 100644 index 3527edcd6f..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/java/HelloworldService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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 ${package}; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index fa37fec88c..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 25d8d8184d..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - ${artifactId} - -#if($includeTuscanyRuntime == "Y") - - tuscany.${artifactId} - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany.${artifactId} - /* - - -#end - - hello.jsp - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp deleted file mode 100644 index 9729ca6823..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-jsonp/src/main/resources/archetype-resources/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +0,0 @@ -<%-- - * 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. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

${artifactId}

- - Calling HelloworldService sayHello("world") returns: - -

- - <%= service.sayHello("world") %> - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/archetypes/quickstart-stripes/META-INF/MANIFEST.MF deleted file mode 100644 index ae84237c4a..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Quickstart Stripes Archetype -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Stripes Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart.stripes -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart-stripes/pom.xml deleted file mode 100644 index 635333eb31..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-quickstart-stripes - maven-archetype - Create a simple Apache Tuscany SCA webapp project using the Stripes Web Framework - Create a simple Apache Tuscany SCA webapp project using the Stripes Web Framework - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-4 - - - - - maven-archetype-plugin - 2.0-alpha-4 - true - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index f15a12fb88..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - src/main/java - - **/*.java - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.html - **/*.composite - - - - src/main/resources - - **/*.properties - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index b5295d8a73..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - quickstart-stripes - - src/main/java/sample/stripes/action/BaseActionBean.java - src/main/java/sample/stripes/action/HomeActionBean.java - src/main/java/sample/sca/HelloworldService.java - src/main/java/sample/sca/HelloworldServiceImpl.java - - - src/main/resources/log4j.properties - src/main/resources/StripesResources.properties - src/main/webapp/index.html - src/main/webapp/WEB-INF/jsp/home.jsp - src/main/webapp/WEB-INF/jsp/layout.jsp - src/main/webapp/WEB-INF/jsp/taglibs.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 312affaba9..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - #literal() - quickstart-stripes - - - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} - - - org.apache.tuscany.sca - tuscany-stripes - ${tuscany.version} - - - - - net.sourceforge.stripes - stripes - ${stripes.version} - - - taglibs - standard - 1.1.2 - - - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-SNAPSHOT - 1.5.2 - 6.1.4 - - #end - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java deleted file mode 100644 index d6cb7bbcf2..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldService.java +++ /dev/null @@ -1,28 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.sca; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java deleted file mode 100644 index 390b424d24..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/sca/HelloworldServiceImpl.java +++ /dev/null @@ -1,31 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.sca; - - -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java deleted file mode 100644 index 5bfa1c5d32..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/BaseActionBean.java +++ /dev/null @@ -1,36 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.stripes.action; - -import net.sourceforge.stripes.action.ActionBean; -import net.sourceforge.stripes.action.ActionBeanContext; - -public class BaseActionBean implements ActionBean { - private ActionBeanContext context; - - public ActionBeanContext getContext() { - return context; - } - public void setContext(ActionBeanContext context) { - this.context = context; - } -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java deleted file mode 100644 index 05fd743841..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/java/stripes/action/HomeActionBean.java +++ /dev/null @@ -1,48 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -/* - * 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 ${package}.stripes.action; - -import net.sourceforge.stripes.action.DefaultHandler; -import net.sourceforge.stripes.action.ForwardResolution; -import net.sourceforge.stripes.action.Resolution; -import net.sourceforge.stripes.action.UrlBinding; - -import org.oasisopen.sca.annotation.Reference; - -import ${package}.sca.HelloworldService; - -@UrlBinding("/Home.htm") -public class HomeActionBean extends BaseActionBean { - - @Reference - HelloworldService service; - - @DefaultHandler - public Resolution view() { - return new ForwardResolution("/WEB-INF/jsp/home.jsp"); - } - - public String getHello() { - return service.sayHello("world"); - } - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties deleted file mode 100644 index 6567f21ce1..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/StripesResources.properties +++ /dev/null @@ -1,77 +0,0 @@ -# -# 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. -# - -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - -${symbol_pound} Resource strings used by the tag when there are no nested tags -stripes.errors.header=

Please fix the following errors:
    -stripes.errors.beforeError=
  1. -stripes.errors.afterError=
  2. -stripes.errors.footer=
- -${symbol_pound} Resource strings used by the tag when displaying errors for a -${symbol_pound} specific field (e.g. ). If not supplied the -${symbol_pound} values above will be used instead. -stripes.fieldErrors.header= -stripes.fieldErrors.beforeError= -stripes.fieldErrors.afterError=
-stripes.fieldErrors.footer= - -${symbol_pound} Resource strings used by the stripes:messages tag -stripes.messages.header=
    -stripes.messages.beforeMessage=
  • -stripes.messages.afterMessage=
  • -stripes.messages.footer=
- -${symbol_pound} Validation error messages produced by Stripes' built-in converter classes. These -${symbol_pound} are default error messages and can be overridden on per-field and per-form levels. -${symbol_pound} Using the 'invalidNumber' error for a field 'age' of a form posting to -${symbol_pound} '/user/Profile.action', the keys looked for (in order) would be: -${symbol_pound} 1: /user/Profile.action.age.invalidNumber -${symbol_pound} 2: /user/Profile.action.age.errorMessage -${symbol_pound} 3: age.errorMessage -${symbol_pound} 4: /user/Profile.action.invalidNumber -${symbol_pound} 5: converter.number.invalidNumber -converter.number.invalidNumber=The value ({1}) entered in field {0} must be a valid number -converter.byte.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} -converter.short.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} -converter.integer.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} -converter.float.outOfRange=The value ({1}) entered in field {0} was out of the range {2} to {3} -converter.enum.notAnEnumeratedValue=The value "{1}" is not a valid value for field {0} -converter.date.invalidDate=The value ({1}) entered in field {0} must be a valid date -converter.email.invalidEmail=The value ({1}) entered is not a valid email address -converter.creditCard.invalidCreditCard=The value ({1}) entered is not a valid credit card number - -${symbol_pound} Validation error messages produced by Stripes' annotation based validations. These -${symbol_pound} are default error messages and can be overridden on per-field and per-form levels. -${symbol_pound} Using the 'valueNotPresent' required field error for a field 'username' of a form -${symbol_pound} posting to '/user/Register.action', the keys looked for (in order) would be: -${symbol_pound} 1: /user/Register.action.username.valueNotPresent -${symbol_pound} 2: /user/Register.action.username.errorMessage -${symbol_pound} 3: username.errorMessage -${symbol_pound} 4: /user/Register.action.valueNotPresent -${symbol_pound} 5: validation.required.valueNotPresent -validation.required.valueNotPresent={0} is a required field -validation.minlength.valueTooShort={0} must be at least {2} characters long -validation.maxlength.valueTooLong={0} must be no more than {2} characters long -validation.minvalue.valueBelowMinimum=The minimum allowed value for {0} is {2} -validation.maxvalue.valueAboveMaximum=The maximum allowed value for {0} is {2} -validation.mask.valueDoesNotMatch={1} is not a valid {0} -validation.expression.valueFailedExpression=The value supplied ({1}) for field {0} is invalid -validation.file.postBodyTooBig=Total upload size of {3} KB exceeds the maximum size of {2} KB diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties deleted file mode 100644 index e2fd1997c8..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/resources/log4j.properties +++ /dev/null @@ -1,51 +0,0 @@ -# -# 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. -# - -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -${symbol_pound} log4j.properties - -${symbol_pound} Set up a logger to the console -log4j.appender.stdout=org.apache.log4j.ConsoleAppender -log4j.appender.stdout.layout=org.apache.log4j.PatternLayout -log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p %c %x - %m%n - -${symbol_pound} Use this to only see log messages beyond a certain threshold in the console -${symbol_pound}log4j.appender.stdout.Threshold=WARN - -${symbol_pound} Set up a logger to a log file -log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender -log4j.appender.logfile.layout=org.apache.log4j.PatternLayout -log4j.appender.logfile.layout.ConversionPattern=[%d{HH:mm:ss}] %-5p %c %x - %m%n -log4j.appender.logfile.File=${symbol_dollar}{user.home}/stripesquick.log -log4j.appender.logfile.DatePattern='.'yyyy-MM-dd - -${symbol_pound} Use this to only see log messages beyond a certain threshold in the log file -${symbol_pound}log4j.appender.logfile.Threshold=WARN - -${symbol_pound} Logger settings -log4j.rootLogger=INFO, stdout, logfile - -${symbol_pound} Valid levels are TRACE, DEBUG, INFO, WARN, ERROR, FATAL -${symbol_pound} Change to TRACE or DEBUG to see more log messages -log4j.logger.net.sourceforge.stripes=WARN -log4j.logger.org.stripesbook.quickstart=INFO -log4j.logger.org.mortbay.log=INFO -log4j.logger.org=WARN -log4j.logger.com=WARN -log4j.logger.net=WARN diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp deleted file mode 100644 index 59cdacfe23..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/home.jsp +++ /dev/null @@ -1,29 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -<%-- - * 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. ---%> -<%@ include file="/WEB-INF/jsp/taglibs.jsp" %> - - - -

sayHello returns: ${symbol_dollar}{actionBean.hello}

-

Congratulations, you've set up a Stripes SCA project!

-
-
diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp deleted file mode 100644 index 0964d2fb7b..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/layout.jsp +++ /dev/null @@ -1,42 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -<%-- - * 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. ---%> -<%@ include file="/WEB-INF/jsp/taglibs.jsp" %> - - - - - - - ${symbol_dollar}{title} - - - - - -
- - -
- - - -
\ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp deleted file mode 100644 index 6452b1bd9c..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/jsp/taglibs.jsp +++ /dev/null @@ -1,32 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) -<%-- - * 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. ---%> -<%-- Stripes TLD --%> -<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %> -<%@ taglib prefix="sdyn" uri="http://stripes.sourceforge.net/stripes-dynattr.tld" %> - -<%-- JSTL TLDs --%> -<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> -<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> -<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> - -<%-- This is so that you can conveniently refer to the context path with ${symbol_dollar}{contextPath} --%> - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index f98b7f2721..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index d73e7311d6..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,68 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - ${artifactId} - - - org.apache.tuscany.sca.host.webapp.TuscanyContextListener - - - - StripesFilter - net.sourceforge.stripes.controller.StripesFilter - - ActionResolver.Packages - ${package}.stripes.action - - - Extension.Packages - org.apache.tuscany.sca.stripes - - - - - DispatcherServlet - net.sourceforge.stripes.controller.DispatcherServlet - 1 - - - - StripesFilter - DispatcherServlet - REQUEST - FORWARD - - - - DispatcherServlet - *.htm - - - - index.html - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html b/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html deleted file mode 100644 index a350f1e68a..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart-stripes/src/main/resources/archetype-resources/src/main/webapp/index.html +++ /dev/null @@ -1,27 +0,0 @@ -#set( $symbol_pound = '#' ) -#set( $symbol_dollar = '$' ) -#set( $symbol_escape = '\' ) - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/archetypes/quickstart/META-INF/MANIFEST.MF deleted file mode 100644 index 29e03eb396..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/META-INF/MANIFEST.MF +++ /dev/null @@ -1,11 +0,0 @@ -Manifest-Version: 1.0 -Bundle-Name: Apache Tuscany SCA Quickstart Archetype -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Bundle-Version: 2.0.0 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Quickstart Archetype -Bundle-SymbolicName: org.apache.tuscany.sca.archetype.quickstart -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 diff --git a/sca-java-2.x/trunk/archetypes/quickstart/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart/pom.xml deleted file mode 100644 index 0ad98af2f3..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - tuscany-quickstart - maven-archetype - Create a simple Apache Tuscany SCA webapp project - Create a simple Apache Tuscany SCA webapp project - - - - - org.apache.maven.archetype - archetype-packaging - 2.0-alpha-4 - - - - - maven-archetype-plugin - 2.0-alpha-4 - true - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml b/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index c132fa0364..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Y - - - - - src/main/java - - **/*.java - - - - src/main/webapp - - **/*.jsp - **/*.xml - **/*.composite - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml b/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 7794570626..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - tuscany-quickstart - - src/main/java/HelloworldImpl.java - src/main/java/HelloworldService.java - - - src/main/webapp/hello.jsp - src/main/webapp/WEB-INF/web.composite - src/main/webapp/WEB-INF/web.xml - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml b/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index bad07a995e..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,143 +0,0 @@ - - - - - 4.0.0 - ${groupId} - ${artifactId} - war - ${version} - quickstart - - - - - org.apache.tuscany.sca - tuscany-sca-api - ${tuscany.version} -#if(${includeTuscanyRuntime} == "Y") - compile -#else - provided -#end - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - ${tuscany.version} -#if( $includeTuscanyRuntime == "Y") - runtime -#else - provided -#end - - - - - junit - junit - 4.8.1 - test - - - - - org.mortbay.jetty - jetty - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-util - ${jetty.version} - provided - - - org.mortbay.jetty - jetty-management - ${jetty.version} - provided - - - - install - ${artifactId} - - - false - src/main/resources - - - false - src/main/java - - ** - - - **/*.java - - - - - - false - src/test/java - - ** - - - **/*.java - - - - - - true - org.apache.maven.plugins - maven-compiler-plugin - - 1.5 - 1.5 - true - true - - - - org.mortbay.jetty - maven-jetty-plugin - ${jetty.version} - - - org.apache.maven.plugins - maven-eclipse-plugin - - true - - - - - - 2.0-SNAPSHOT - 6.1.18 - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java b/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java deleted file mode 100644 index df80303778..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldImpl.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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 ${package}; - -public class HelloworldImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java b/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java deleted file mode 100644 index 47501efb9a..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/java/HelloworldService.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 ${package}; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 8d840b7867..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index a7c7d2251e..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - - ${artifactId} - -#if($includeTuscanyRuntime == "Y") - - tuscany.${artifactId} - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany.${artifactId} - /* - - -#end - - hello.jsp - - - diff --git a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp b/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp deleted file mode 100644 index 9729ca6823..0000000000 --- a/sca-java-2.x/trunk/archetypes/quickstart/src/main/resources/archetype-resources/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +0,0 @@ -<%-- - * 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. ---%> -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

${artifactId}

- - Calling HelloworldService sayHello("world") returns: - -

- - <%= service.sayHello("world") %> - - - -- cgit v1.2.3