diff options
Diffstat (limited to 'sca-java-1.x/branches/java-post-M1/distribution')
22 files changed, 1835 insertions, 0 deletions
diff --git a/sca-java-1.x/branches/java-post-M1/distribution/BUILDING.txt b/sca-java-1.x/branches/java-post-M1/distribution/BUILDING.txt new file mode 100644 index 0000000000..4164dd9a78 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/BUILDING.txt @@ -0,0 +1,5 @@ +To create the Tuscany distribution, you just simply run: + +build-dist.bat +or +build-dist.sh diff --git a/sca-java-1.x/branches/java-post-M1/distribution/axis2-overlay/pom.xml b/sca-java-1.x/branches/java-post-M1/distribution/axis2-overlay/pom.xml new file mode 100644 index 0000000000..86dd740c59 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/axis2-overlay/pom.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + --> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution</artifactId> + <version>incubating-M1</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-distribution-axis2-overlay</artifactId> + <packaging>jar</packaging> + <name>Tuscany Distribution Project - Axis2 Overlay</name> + <version>incubating-M1</version> + + <dependencies> + <dependency> + <groupId>org.apache.tuscany.sca.bindings</groupId> + <artifactId>tuscany-binding-axis2</artifactId> + <version>${pom.version}</version> + <exclusions> + <exclusion> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-core</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>tuscany-axis2-${project.version}</finalName> + <archive> + <manifest> + <addClasspath>true</addClasspath> + </manifest> + </archive> + </configuration> + <executions> + <execution> + <id>manifest-jar</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.0.1</version> + <executions> + <execution> + <id>overlay</id> + <phase>package</phase> + <goals> + <goal>directory</goal> + </goals> + </execution> + </executions> + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + </descriptors> + <finalName>tuscany</finalName> + <outputDirectory>${basedir}/../target</outputDirectory> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/axis2-overlay/src/main/assembly/bin.xml b/sca-java-1.x/branches/java-post-M1/distribution/axis2-overlay/src/main/assembly/bin.xml new file mode 100644 index 0000000000..97dcfea287 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/axis2-overlay/src/main/assembly/bin.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed 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. + --> +<assembly> + <id>dist</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <directory>axis2-overlay/target</directory> + <outputDirectory>lib/axis2</outputDirectory> + <includes> + <include>tuscany-axis2-incubating-M1.jar</include> + </includes> + </fileSet> + </fileSets> + <dependencySets> + <dependencySet> + <outputDirectory>lib/axis2</outputDirectory> + </dependencySet> + </dependencySets> +</assembly> + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/build-dist.bat b/sca-java-1.x/branches/java-post-M1/distribution/build-dist.bat new file mode 100644 index 0000000000..c4d0b4b7fe --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/build-dist.bat @@ -0,0 +1,33 @@ +@REM ---------------------------------------------------------------------------- +@REM Copyright 2006 The Apache Software Foundation. +@REM +@REM Licensed under the Apache License, Version 2.0 (the "License"); +@REM you may not use this file except in compliance with the License. +@REM You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, software +@REM distributed under the License is distributed on an "AS IS" BASIS, +@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@REM See the License for the specific language governing permissions and +@REM limitations under the License. +@REM ---------------------------------------------------------------------------- +@REM +@setlocal +@echo off + +SET CUR_DIR=%cd% +cd /d "%~dp0.." +SET TUSCANY_HOME=%cd% +cd /d "%CUR_DIR%" +echo Building Tuscany ... +cd /d "%TUSCANY_HOME%" +call mvn -Dtuscany.home=%TUSCANY_HOME% %1 clean install -Dmaven.test.skip=true +if ERRORLEVEL 1 goto error +cd /d "%TUSCANY_HOME%/distribution" +echo Creating Tuscany distribution ... +call mvn %1 clean install +:error +cd /d "%CUR_DIR%" +@endlocal diff --git a/sca-java-1.x/branches/java-post-M1/distribution/build-dist.sh b/sca-java-1.x/branches/java-post-M1/distribution/build-dist.sh new file mode 100755 index 0000000000..f23fd378d2 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/build-dist.sh @@ -0,0 +1,33 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Copyright 2006 The Apache Software Foundation. +# +# Licensed 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. +# ---------------------------------------------------------------------------- + +# Copyright (c) 2001-2002 The Apache Software Foundation. All rights +# reserved. +# +CUR_DIR=`pwd` +cd .. +TUSCANY_HOME=`pwd` +echo Building Tuscany ... +echo $TUSCANY_HOME +mvn -Dtuscany.home=$TUSCANY_HOME $1 clean install -Dmaven.test.skip=true +if [ $? -eq 0 ] +then +cd $CUR_DIR +echo Creating Tuscany distribution ... +mvn $1 clean install +fi + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/buildDistribution.xml b/sca-java-1.x/branches/java-post-M1/distribution/buildDistribution.xml new file mode 100644 index 0000000000..0c7d15435b --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/buildDistribution.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + --> +<project name="project" default="createDistribution"> + + <condition property="isSample"> + <and> + <contains string="${project.groupId}" substring=".samples" /> + <or> + <equals arg1="${project.packaging}" arg2="jar" /> + <equals arg1="${project.packaging}" arg2="war" /> + </or> + </and> + </condition> + + <condition property="isJar"> + <and> + <not> + <contains string="${project.groupId}" substring=".samples" /> + </not> + <equals arg1="${project.packaging}" arg2="jar" /> + </and> + </condition> + + <condition property="isFirstTime"> + <and> + <equals arg1="${project.groupId}" arg2="org.osoa" /> + <equals arg1="${project.artifactId}" arg2="spec" /> + </and> + </condition> + + <target name="createDistribution" depends="copyJavadoc" /> + + <target name="copySample" if="isSample" description="Copy the sample code to the Tuscany distribution folder"> + <property name="target.folder" value="${dist.folder}/samples/${project.artifactId}" /> + <delete dir="${target.folder}" /> + <copy todir="${target.folder}"> + <fileset dir="${project.basedir}" includes="readme.htm, pom.xml"> + <include name="src/main/**" /> + <include name="target/${project.artifactId}-${project.version}.${project.packaging}" /> + </fileset> + </copy> + </target> + + <target name="copyJavadoc" if="isJar" description="Copy the javadoc to the Tuscany distribution folder"> + <copy todir="${dist.folder}/javadoc/${project.artifactId}"> + <fileset dir="${project.basedir}/target/site/apidocs"> + <include name="**/*" /> + </fileset> + </copy> + </target> + + <target name="cleanDistribution" depends="cleanJavadoc, cleanBuild" /> + + <target name="cleanJavadoc" if="isJar"> + <delete file="${dist.folder}/lib/${project.artifactId}-${project.version}.${project.packaging}" quiet="true" /> + <delete file="${dist.folder}/javadoc/${project.artifactId}-${project.version}-javadoc.${project.packaging}" quiet="true" /> + <delete dir="${dist.folder}/javadoc/${project.artifactId}" quiet="true" /> + </target> + + <target name="cleanSample" if="isSample"> + <delete dir="${dist.folder}/samples/${project.artifactId}" quiet="true" /> + </target> + + <target name="cleanBuild" if="isFirstTime"> + <delete dir="${dist.folder}" quiet="true" /> + </target> + +</project> + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/celtix-overlay/pom.xml b/sca-java-1.x/branches/java-post-M1/distribution/celtix-overlay/pom.xml new file mode 100644 index 0000000000..6c999bb89a --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/celtix-overlay/pom.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + --> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution</artifactId> + <version>incubating-M1</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-distribution-celtix-overlay</artifactId> + <packaging>jar</packaging> + <name>Tuscany Distribution Project - Celtix Overlay</name> + <version>incubating-M1</version> + + <dependencies> + <dependency> + <groupId>org.apache.tuscany.sca.bindings</groupId> + <artifactId>tuscany-binding-celtix</artifactId> + <version>${pom.version}</version> + <exclusions> + <exclusion> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-core</artifactId> + </exclusion> + </exclusions> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>tuscany-celtix-${project.version}</finalName> + <archive> + <manifest> + <addClasspath>true</addClasspath> + </manifest> + </archive> + </configuration> + <executions> + <execution> + <id>manifest-jar</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.0.1</version> + <executions> + <execution> + <id>overlay</id> + <phase>package</phase> + <goals> + <goal>directory</goal> + </goals> + </execution> + </executions> + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + </descriptors> + <finalName>tuscany</finalName> + <outputDirectory>${basedir}/../target</outputDirectory> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/celtix-overlay/src/main/assembly/bin.xml b/sca-java-1.x/branches/java-post-M1/distribution/celtix-overlay/src/main/assembly/bin.xml new file mode 100644 index 0000000000..0f1fcb967f --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/celtix-overlay/src/main/assembly/bin.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed 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. + --> +<assembly> + <id>dist</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <directory>celtix-overlay/target</directory> + <outputDirectory>lib/celtix</outputDirectory> + <includes> + <include>tuscany-celtix-incubating-M1.jar</include> + </includes> + </fileSet> + </fileSets> + <dependencySets> + <dependencySet> + <outputDirectory>lib/celtix</outputDirectory> + </dependencySet> + </dependencySets> +</assembly> + + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/pom.xml b/sca-java-1.x/branches/java-post-M1/distribution/pom.xml new file mode 100644 index 0000000000..172f1e5494 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/pom.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + --> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-project</artifactId> + <version>incubating-M1</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-distribution</artifactId> + <packaging>pom</packaging> + <name>Tuscany Distribution Project</name> + <version>incubating-M1</version> + + <modules> + <module>axis2-overlay</module> + <module>celtix-overlay</module> + <module>tuscany-core-overlay</module> + <module>tuscany-tools-overlay</module> + <module>tuscany-samples</module> + <module>tomcat-overlay</module> + <module>tuscany-polish</module> + </modules> + +</project> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/configureTomcat.xml b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/configureTomcat.xml new file mode 100644 index 0000000000..32407b4e88 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/configureTomcat.xml @@ -0,0 +1,425 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!-- + Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + --> +<project name="setup tomcat" default="prepareTomcat" basedir='.'> + <property environment="env" /> + <property file="${user.home}/tuscany/build.properties" /> + <property file="${user.home}/build.properties" /> + <property name="wsbinding" value="axis2" /> + + <property name="tuscany.acceptance.tomcat.version" value='5.5.17' /> + <condition property="tuscany.acceptance.tomcat.zipped" value='apache-tomcat-${tuscany.acceptance.tomcat.version}.zip'> + <os family="windows" /> + </condition> + <condition property="tuscany.acceptance.tomcat.zipped" value='apache-tomcat-${tuscany.acceptance.tomcat.version}.tar.gz'> + <or> + <os family="unix" /> + <os family="mac" /> + </or> + </condition> + <condition property="ant.home" value="${env.ANT_HOME}"> + <os family="unix" /> + </condition> + + <property name="tuscany.acceptance.target.dir" value='${target.dir}' /> + + <condition property="tuscany.acceptance.target.dir" value="target"> + <not> + <isset property="target.dir" /> + </not> + </condition> + + <property name="tuscany.acceptance.tc.dir" value='${tuscany.acceptance.target.dir}/apache-tomcat-${tuscany.acceptance.tomcat.version}' /> + + <!-- KJW define property for the complete path of apache dir --> + <property name="fullpath.tuscany.acceptance.tc.dir" value= '${tuscany.acceptance.tc.dir}' /> + + + <property name="tuscany.acceptance.groupId" value='org/apache/tuscany' /> + <property name="tuscany.acceptance.version" value='incubating-M1' /> + + <property name="tuscany.sca.acceptance.groupId" value='org/osoa' /> + <property name="tuscany.sca.acceptance.version" value='incubating-M1' /> + + <property name="tuscany.commonj.acceptance.groupId" value='commonj' /> + <property name="tuscany.commonj.acceptance.version" value='incubating-M1' /> + + <property name="tuscany.sdo.acceptance.groupId" value='org/apache/tuscany' /> + <property name="tuscany.sdo.acceptance.version" value='incubating-M1' /> + + <property name="tuscany.acceptance.axis2.version" value='1.0' /> + + <property name="tuscany.acceptance.bindings" value='org/apache/tuscany/sca/bindings' /> + <property name="tuscany.acceptance.containers" value='org/apache/tuscany/sca/containers' /> + <property name="tuscany.acceptance.databindings" value='org/apache/tuscany/databinding' /> + <property name="tuscany.acceptance.sca.samples.dir" value='../../samples' /> + <property name="tuscany.acceptance.samples.dir" value='../../sampleapps' /> + <property name="tuscany.acceptance.interop.dir" value='../../testing/interop' /> + + <!--KJW Define location of canned Derby database --> + <property name="tuscany.acceptance.das.samples.companyweb.dir" value='../../samples/das/companyweb' /> + + <!-- property name="tuscany.maven.repos.dir" value='${user.home}\.maven\repository' / --> + <!-- change for maven 2.0 --> + <property name="tuscany.maven.repos.dir" value='${user.home}\.m2\repository' /> + <condition property="isWindows"> + <os family="windows" /> + </condition> + <condition property="isUnix"> + <os family="unix" /> + </condition> + <condition property="isMac"> + <os family="mac" /> + </condition> + + <patternset id="tuscany.acceptance.common.dependencies"> + <include name="**/stax/stax-api/1.0/stax-api-1.0.jar" /> + <include name="**/woodstox/wstx-asl/2.9.3/wstx-asl-2.9.3.jar" /> + </patternset> + + <patternset id="tuscany.acceptance.javascript.dependencies"> + <include name="**/rhino/js/1.6R2/js-1.6R2.jar" /> + <include name="**/xmlbeans/xbean/2.1.0/xbean-2.1.0.jar" /> + </patternset> + + <patternset id="tuscany.acceptance.emf.dependencies"> + <include name="**/org/eclipse/emf/common/2.2.0-RC4/common-2.2.0-RC4.jar" /> + <include name="**/org/eclipse/emf/ecore/2.2.0-RC4/ecore-2.2.0-RC4.jar" /> + <include name="**/org/eclipse/emf/ecore-change/2.2.0-RC4/ecore-change-2.2.0-RC4.jar" /> + <include name="**/org/eclipse/emf/ecore-xmi/2.2.0-RC4/ecore-xmi-2.2.0-RC4.jar" /> + <include name="**/org/eclipse/xsd/xsd/2.2.0-RC4/xsd-2.2.0-RC4.jar" /> + </patternset> + + <patternset id="tuscany.acceptance.tc.specsdoimpl"> + <!--jars which need to go into tomcat common/lib --> + <include name="**/${tuscany.sca.acceptance.groupId}/sca-api/${tuscany.sca.acceptance.version}/sca-api-${tuscany.sca.acceptance.version}.jar" /> + <include name="**/${tuscany.commonj.acceptance.groupId}/sdo-api/${tuscany.commonj.acceptance.version}/sdo-api-${tuscany.commonj.acceptance.version}.jar" /> + <include name="**/${tuscany.acceptance.groupId}/tuscany-sdo-impl/${tuscany.acceptance.version}/tuscany-sdo-impl-${tuscany.acceptance.version}.jar" /> + </patternset> + + <patternset id="tuscany.acceptance.sca.core"> + <!--jars which need to go into tomcat server/lib --> + <include name="**/${tuscany.acceptance.groupId}/tuscany-common/${tuscany.acceptance.version}/tuscany-common-${tuscany.acceptance.version}.jar" /> + <include name="**/${tuscany.acceptance.containers}/tuscany-container-java/${tuscany.acceptance.version}/tuscany-container-java-${tuscany.acceptance.version}.jar" /> + <include name="**/${tuscany.acceptance.containers}/tuscany-container-rhino/${tuscany.acceptance.version}/tuscany-container-rhino-${tuscany.acceptance.version}.jar" /> + <include name="**/${tuscany.acceptance.databindings}/tuscany-databinding-sdo/${tuscany.acceptance.version}/tuscany-databinding-sdo-${tuscany.acceptance.version}.jar" /> + <include name="**/${tuscany.acceptance.groupId}/tuscany-core/${tuscany.acceptance.version}/tuscany-core-${tuscany.acceptance.version}.jar" /> + <include name="**/${tuscany.acceptance.groupId}/tuscany-model/${tuscany.acceptance.version}/tuscany-model-${tuscany.acceptance.version}.jar" /> + + <include name="**/wsdl4j/wsdl4j/1.5.2/wsdl4j-1.5.2.jar" /> + <include name="**/org/apache/geronimo/geronimo-connector/1.0/geronimo-connector-1.0.jar" /> + <include name="**/org/apache/geronimo/specs/geronimo-j2ee-connector_1.5_spec/1.0/geronimo-j2ee-connector_1.5_spec-1.0.jar" /> + <include name="**/org/apache/geronimo/specs/geronimo-jta_1.0.1B_spec/1.0/geronimo-jta_1.0.1B_spec-1.0.jar" /> + <include name="**/org/apache/geronimo/geronimo-transaction/1.0/geronimo-transaction-1.0.jar" /> + <include name="**/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar" /> + <include name="**/asm/asm/2.2/asm-2.2.jar" /> + <include name="**/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" /> + </patternset> + + <patternset id="tuscany.acceptance.binding.axis2"> + <include name="**/${tuscany.acceptance.bindings}/tuscany-binding-axis2/${tuscany.acceptance.version}/tuscany-binding-axis2-${tuscany.acceptance.version}.jar" /> + <include name="**/axis2/axis2-kernel/${tuscany.acceptance.axis2.version}/axis2-kernel-${tuscany.acceptance.axis2.version}.jar" /> + <include name="**/ws-commons/axiom-api/1.0/axiom-api-1.0.jar" /> + <include name="**/ws-commons/axiom-impl/1.0/axiom-impl-1.0.jar" /> + <include name="**/ws-commons/neethi/1.0.1/neethi-1.0.1.jar" /> + <include name="**/org/apache/ws/commons//XmlSchema/1.0.2/XmlSchema-1.0.2.jar" /> + <include name="**/commons-httpclient/commons-httpclient/3.0/commons-httpclient-3.0.jar" /> + <include name="**/commons-codec/commons-codec/1.3/commons-codec-1.3.jar" /> + </patternset> + + <property name="celtix.version" value="1.0" /> + <patternset id="tuscany.acceptance.binding.celtix"> + <include name="**/${tuscany.acceptance.bindings}/tuscany-binding-celtix/${tuscany.acceptance.version}/tuscany-binding-celtix-${tuscany.acceptance.version}.jar" /> + <include name="**/org/objectweb/celtix/celtix-rt/${celtix.version}/celtix-rt-${celtix.version}.jar" /> + <include name="**/org/objectweb/celtix/celtix-api/${celtix.version}/celtix-api-${celtix.version}.jar" /> + <include name="**/org/objectweb/celtix/celtix-common/${celtix.version}/celtix-common-${celtix.version}.jar" /> + <include name="**/org/objectweb/celtix/celtix-tools/${celtix.version}/celtix-tools-${celtix.version}.jar" /> + + <include name="**/com/sun/xml/jaxb-impl/2.0EA3/jaxb-impl-2.0EA3.jar" /> + <include name="**/com/sun/xml/jaxb-xjc/2.0EA3/jaxb-xjc-2.0EA3.jar" /> + <include name="**/com/sun/xml/saaj-impl/1.3/saaj-impl-1.3.jar" /> + <include name="**/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar"/> + <include name="**/javax/annotation/jsr250-api/2.0-JAXWS-2.0-EA3/jsr250-api-2.0-JAXWS-2.0-EA3.jar" /> + <include name="**/javax/jws/jsr181-api/2.0-JAXWS-2.0-EA3/jsr181-api-2.0-JAXWS-2.0-EA3.jar" /> + <include name="**/javax/xml/jaxb-api/2.0EA3/jaxb-api-2.0EA3.jar" /> + <include name="**/javax/xml/jaxws-api/2.0-JAXWS-2.0-EA3/jaxws-api-2.0-JAXWS-2.0-EA3.jar" /> + <include name="**/javax/xml/saaj-api/1.3/saaj-api-1.3.jar" /> + <include name="**/jetty/org.mortbay.jetty/5.1.9/org.mortbay.jetty-5.1.9.jar" /> + <include name="**/org/springframework/spring-beans/1.2.5/spring-beans-1.2.5.jar" /> + <include name="**/org/springframework/spring-core/1.2.5/spring-core-1.2.5.jar" /> + <include name="**/regexp/regexp/1.3/regexp-1.3.jar" /> + <include name="**/velocity/velocity-dep/1.4/velocity-dep-1.4.jar" /> + <include name="**/velocity/velocity/1.4/velocity-1.4.jar" /> + <include name="**/wsdl4j/wsdl4j/1.5.2/wsdl4j-1.5.2.jar" /> + + <include name="**/org/apache/geronimo/specs/geronimo-activation_1.0.2_spec/1.0/geronimo-activation_1.0.2_spec-1.0.jar" /> + <include name="**/asm/asm/2.2/asm-2.2.jar" /> + </patternset> + + <target name="init"> + <available property='tomcat.is.available' file='${tuscany.acceptance.tc.dir}/server/lib/catalina.jar' type='file' /> + <available property='tuscany.acceptance.tomcat.zipped.available' file='${tuscany.acceptance.tomcat.zipped}' type='file' /> + <available property='tuscany.acceptance.tomcat.serverxmlorg.available' file='${tuscany.acceptance.tc.dir}/conf/server.xml.original' /> + <available property='tuscany.acceptance.tomcat.contextxmlorg.available' file='${tuscany.acceptance.tc.dir}/conf/context.xml.original' /> + </target> + + <target name="check.for.zip" depends="init" unless='tuscany.acceptance.tomcat.zipped.available'> + <property name='tuscany.acceptance.tomcat.zipped.full' location="${tuscany.acceptance.tomcat.zipped}" /> + <echo level="error" message="${tuscany.acceptance.tomcat.zipped} file not found here:'${tuscany.acceptance.tomcat.zipped.full}'" /> + <echo level="error" message="Either place zip file there or change ${user.home}/build.properties in home dir to include 'tuscany.acceptance.tomcat.zipped' property to where zip is located. " /> + <fail /> + </target> + + + <target name="tuscany.tomcat.unzipWindows" if="isWindows" depends='init,check.for.zip' description='Just unzip tomcat' unless='tomcat.is.available'> + <unzip src="${tuscany.acceptance.tomcat.zipped}" dest="${tuscany.acceptance.target.dir}" /> + </target> + <target name="tuscany.tomcat.unzipUnix" if="isUnix" depends='init,check.for.zip' description='Just unzip tomcat' unless='tomcat.is.available'> + <mkdir dir="${tuscany.acceptance.target.dir}" /> + <gunzip src="${tuscany.acceptance.tomcat.zipped}" dest="${tuscany.acceptance.target.dir}/temp.tar" /> + <!-- Exec tar because ant builtin tar does not preserve execute permissions. --> + <exec executable="tar" dir="${tuscany.acceptance.target.dir}"> + <arg value="xf" /> + <arg value="temp.tar" /> + </exec> + <delete file="${tuscany.acceptance.target.dir}/temp.tar" /> + </target> + <target name="tuscany.tomcat.unzipMac" if="isMac" depends='init,check.for.zip' description='Just unzip tomcat' unless='tomcat.is.available'> + <antcall target="tuscany.tomcat.unzipUnix" /> + <!-- just use unix for now --> + </target> + + <target name="prepareTomcat" depends='tuscany.tomcat.unzipWindows,tuscany.tomcat.unzipUnix,tuscany.tomcat.unzipMac,tuscany.tomcat.fixup,tuscany.deploy.samples,tuscany.deploy.das.standalone' description='Unzip tomcat, fix it up, and deploy samples'> + <dirname property='tuscany.acceptance.tc.dir.full' file="${tuscany.acceptance.tc.dir}/bin" /> + <echo level="info" message="Tomcat fixed up here: ${tuscany.acceptance.tc.dir.full}" /> + + </target> + <target name="startTestServer" depends='prepareTomcat' description='start server prepared to run tests'> + <waitfor maxwait="1" maxwaitunit="second" checkevery="200" timeoutproperty="tuscany.tomcat.notstarted"> + <http url="http://localhost:8080" /> + </waitfor> + <condition property="tuscany.tomcat.alreadystarted"> + <not> + <istrue value="${tuscany.tomcat.notstarted}" /> + </not> + </condition> + <antcall target="startTomcat" /> + </target> + + <target name="tuscany.tomcat.fixup" depends='tuscany.tomcat.fixserverconfig' description='Fix up tomcat for tuscany.'> + <mkdir dir="${tuscany.acceptance.target.dir}" /> + + <copy todir="${tuscany.acceptance.tc.dir}/common/lib" flatten='true'> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.emf.dependencies" /> + </fileset> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.tc.specsdoimpl" /> + </fileset> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset> + <!-- for Derby and DAS support --> + <include name="**/${tuscany.acceptance.groupId}/das/tuscany-das-rdb/${tuscany.acceptance.version}/tuscany-das-rdb-${tuscany.acceptance.version}.jar" /> + <include name="**/org/apache/derby/derby/10.1.2.1/derby-10.1.2.1.jar" /> + </patternset> + <patternset> + <!-- for JSON-RPC support --> + <include name="**/metaparadigm/jsonrpc/1.0/jsonrpc-1.0.jar" /> + </patternset> + </fileset> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.common.dependencies" /> + </fileset> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.javascript.dependencies" /> + </fileset> + </copy> + <copy todir="${tuscany.acceptance.tc.dir}/server/lib" flatten='true'> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.sca.core" /> + <patternset> + <include name="**/${tuscany.acceptance.groupId}/tuscany-tomcat/${tuscany.acceptance.version}/tuscany-tomcat-${tuscany.acceptance.version}.jar" /> + </patternset> + </fileset> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.binding.${wsbinding}" /> + </fileset> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset> + <include name="**/${tuscany.acceptance.bindings}/tuscany-binding-jsonrpc/${tuscany.acceptance.version}/tuscany-binding-jsonrpc-${tuscany.acceptance.version}.jar" /> + </patternset> + </fileset> + + </copy> + </target> + + <target name="tuscany.deploy.samples" description='Deploy tuscany sample wars to tomcat webapps.'> + <copy todir="${tuscany.acceptance.tc.dir}/webapps" flatten='true'> + <fileset dir="${tuscany.acceptance.sca.samples.dir}"> + <include name="**/*.war" /> + </fileset> + <fileset dir="${tuscany.acceptance.samples.dir}"> + <include name="**/*.war" /> + </fileset> + <chainedmapper> + <flattenmapper/> + <globmapper from="*-incubating-M1.war" to="*.war"/> + </chainedmapper> + </copy> + </target> + + + <!-- DAS standalone target --> + <target name="tuscany.deploy.das.standalone" description='Deploy DAS stand alone sample to tomcat.'> + + + <!-- Create directory for the derby database --> + <property name="tuscany.acceptance.target.databases.dir" value='${tuscany.acceptance.tc.dir}/Databases' /> + <mkdir dir="${tuscany.acceptance.target.databases.dir}" /> + + <!-- Copy over the Derby database --> + <copy todir="${tuscany.acceptance.target.databases.dir}"> + <fileset dir="${tuscany.acceptance.das.samples.companyweb.dir}"> + <include name="**/dastest/**" /> + </fileset> + </copy> + </target> + + <!-- provide a convenient -Djava.ext.dirs= to run j2se samples --> + <target name="j2se" description='create a java extensions directory to run J2SE tuscany applications.'> + <property name="tuscany.acceptance.j2se.dir" value='${tuscany.acceptance.target.dir}/j2se' /> + <mkdir dir="${tuscany.acceptance.j2se.dir}" /> + <copy todir="${tuscany.acceptance.j2se.dir}" flatten='true'> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.common.dependencies" /> + </fileset> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.emf.dependencies" /> + <patternset refid="tuscany.acceptance.tc.specsdoimpl" /> + <patternset refid="tuscany.acceptance.sca.core" /> + </fileset> + </copy> + </target> + + <!-- provide a convenient -Djava.ext.dirs= to run j2se and webservice client samples --> + <target name="j2sews" description='create a java extensions directory to run J2SE tuscany applications.'> + <property name="tuscany.acceptance.j2sews.dir" value='${tuscany.acceptance.target.dir}/j2sews' /> + + <antcall target="j2se" inheritAll='true' inheritRefs='true'> + <param name="tuscany.acceptance.j2se.dir" value="${tuscany.acceptance.j2sews.dir}" /> + </antcall> + <copy todir="${tuscany.acceptance.j2sews.dir}" flatten='true'> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.common.dependencies" /> + </fileset> + <fileset dir="${tuscany.maven.repos.dir}"> + <patternset refid="tuscany.acceptance.binding.${wsbinding}" /> + </fileset> + </copy> + </target> + + + <target name="backup.server.xml" depends="init" unless='tuscany.acceptance.tomcat.serverxmlorg.available'> + <copy file='${tuscany.acceptance.tc.dir}/conf/server.xml' tofile='${tuscany.acceptance.tc.dir}/conf/server.xml.original' /> + </target> + <target name="backup.context.xml" depends="init" unless='tuscany.acceptance.tomcat.contextxmlorg.available'> + <copy file='${tuscany.acceptance.tc.dir}/conf/context.xml' tofile='${tuscany.acceptance.tc.dir}/conf/context.xml.original' /> + </target> + <target name="tuscany.tomcat.fixserverconfig" depends='tuscany.tomcat.fixserverxml,tuscany.tomcat.fixcontextxml' description='Add listeners' /> + <target name="tuscany.tomcat.fixserverxml" depends='init,backup.server.xml' unless='tuscany.acceptance.tomcat.serverxmlorg.available'> + <property name="tuscany.acceptance.tomcat.serverxmlorg.available" value='true' /> + + <!-- KJW save results to server_temp.xml --> + <xslt processor="trax" + in="${tuscany.acceptance.tc.dir}/conf/server.xml.original" + style="server.xsl" + out="${tuscany.acceptance.tc.dir}/conf/server_temp.xml"> + </xslt> + + <!--KJW modify server.xml to include derby database resource --> + <echo level="info" message="Running datasource.xsl" /> + <xslt processor="trax" + in="${tuscany.acceptance.tc.dir}/conf/server_temp.xml" style="datasource.xsl" out="${tuscany.acceptance.tc.dir}/conf/server.xml"> + <param name="database_location" expression="jdbc:derby:../Databases/dastest"/> + </xslt> + + <!-- echo message='${user.home}/.axis2/axis2.xml '/ --> + <!-- copy file='axis2.xml' tofile='${user.home}/.axis2/axis2.xml' / --> + </target> + <target name="tuscany.tomcat.fixcontextxml" depends='init,backup.context.xml' unless='tuscany.acceptance.tomcat.contextxmlorg.available'> + <property name="tuscany.acceptance.tomcat.contextxmlorg.available" value='true' /> + <!-- DO NOTHING AT THIS TIME + <xslt + in="${tuscany.acceptance.tc.dir}/conf/context.xml.original" + style="context.xsl" out="${tuscany.acceptance.tc.dir}/conf/context.xml" + > + + </xslt> + --> + </target> + + <target name="startTomcatWindows" if="isWindows" unless='tuscany.tomcat.alreadystarted'> + <exec spawn='true' vmlauncher="false" failonerror='false' dir="${tuscany.acceptance.tc.dir}\bin" executable="cmd.exe"> + <arg line="/C start " Tomcat running ${tuscany.acceptance.tc.dir}" catalina run && exit" /> + </exec> + </target> + <target name="startTomcatUnix" if="isUnix" unless='tuscany.tomcat.alreadystarted'> + <echo level="info" message="Starting Tomcat" /> + <exec spawn='true' vmlauncher="false" failonerror='false' dir="${tuscany.acceptance.tc.dir}/bin" executable="xterm"> + <arg line="-e ./catalina.sh run" /> + </exec> + </target> + <target name="startTomcatMac" if="isMac" unless='tuscany.tomcat.alreadystarted'> + <antcall target="startTomcatUnix" /> + </target> + + <target name="tuscany.tomcat.alreadystartedmsg" if="tuscany.tomcat.alreadystarted"> + <echo level="info" message="Tomcat has been already started! ${tuscany.tomcat.alreadystarted}" /> + </target> + <target name="startTomcat" description="Start up tomcat." depends="tuscany.tomcat.alreadystartedmsg,startTomcatWindows,startTomcatUnix,startTomcatMac" unless='tuscany.tomcat.alreadystarted'> + <sleep seconds="10" /> + <!-- it's going to at least require this --> + <waitfor maxwait="15" maxwaitunit="second" checkevery="200"> + <http url="http://localhost:8080" /> + </waitfor> + + </target> + + <target name="clean" description='Clean out all built artifacts'> + <delete dir="${tuscany.acceptance.tc.dir}" /> + </target> + + <target name='setup.TC.antscripts' depends='tuscany.tomcat.unzipWindows,tuscany.tomcat.unzipUnix,tuscany.tomcat.unzipMac'> + <!-- Configure the custom Ant tasks for the Manager application --> + <taskdef resource="org/apache/catalina/ant/catalina.tasks"> + <classpath> + <fileset dir="${tuscany.acceptance.tc.dir}/server/lib"> + <include name="*.jar" /> + </fileset> + <fileset dir="${tuscany.acceptance.tc.dir}/common/lib"> + <include name="*.jar" /> + </fileset> + <fileset dir="${tuscany.acceptance.tc.dir}/bin"> + <include name="*.jar" /> + </fileset> + </classpath> + </taskdef> + + </target> + +</project> + + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/context.xsl b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/context.xsl new file mode 100644 index 0000000000..3224d15dae --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/context.xsl @@ -0,0 +1,96 @@ +<!-- + Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. + + Licensed 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. + --> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output indent="yes" /> + + <xsl:param name="classname"/> + <!-- xsl:template match="node() | @*"> + <xsl:copy> + <xsl:apply-templates select="node() | @*"/> + </xsl:copy> + </xsl:template --> + <xsl:template + match="@* | * | comment() | processing-instruction() | text()"> + <xsl:copy> + <xsl:apply-templates + select="@* | * | comment() | processing-instruction() | text()" /> + </xsl:copy> + </xsl:template> + +<!-- + <xsl:template match="Context"> + <Context> + <xsl:apply-templates select="@*" /> + <Listener className="org.apache.tuscany.tomcat.lifecycle.listener.TomcatWebAppLifecycleListener" /> + <xsl:apply-templates + select="@* | * | comment() | processing-instruction() | text()" /> + </Context> + </xsl:template> +--> + + <!-- xsl:template match="/"> + <xsl:apply-templates select="node() | @*" /> + </xsl:template --> +</xsl:stylesheet> +<!-- + Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. + + Licensed 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. + --> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output indent="yes" /> + + <xsl:param name="classname"/> + <!-- xsl:template match="node() | @*"> + <xsl:copy> + <xsl:apply-templates select="node() | @*"/> + </xsl:copy> + </xsl:template --> + <xsl:template + match="@* | * | comment() | processing-instruction() | text()"> + <xsl:copy> + <xsl:apply-templates + select="@* | * | comment() | processing-instruction() | text()" /> + </xsl:copy> + </xsl:template> + +<!-- + <xsl:template match="Context"> + <Context> + <xsl:apply-templates select="@*" /> + <Listener className="org.apache.tuscany.tomcat.lifecycle.listener.TomcatWebAppLifecycleListener" /> + <xsl:apply-templates + select="@* | * | comment() | processing-instruction() | text()" /> + </Context> + </xsl:template> +--> + + <!-- xsl:template match="/"> + <xsl:apply-templates select="node() | @*" /> + </xsl:template --> +</xsl:stylesheet> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/datasource.xsl b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/datasource.xsl new file mode 100644 index 0000000000..ad473e317c --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/datasource.xsl @@ -0,0 +1,39 @@ +<?xml version="1.0"?> + +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> + +<xsl:output method="xml" indent="yes"/> + + <xsl:param name="database_location"/> + +<!--Add derby database resource--> +<xsl:template match="GlobalNamingResources"> + + <xsl:copy> + <!--Copy existing--> + <xsl:apply-templates select="@* | node()" /> + + <xsl:comment> Global Datasource for Derby dastest database </xsl:comment> + <xsl:text> + </xsl:text> + <!--Append this--> + <Resource name="jdbc/dastest" + type="javax.sql.DataSource" auth="Container" + description="Derby database for DAS Company sample" + maxActive="100" maxIdle="30" maxWait="10000" + username="" password="" + driverClassName="org.apache.derby.jdbc.EmbeddedDriver" + url="{$database_location}"/> + + </xsl:copy> + +</xsl:template> + +<!--Copy everything!--> +<xsl:template match="node() | @*"> + <xsl:copy> + <xsl:apply-templates select="@* | node()" /> + </xsl:copy> +</xsl:template> + +</xsl:stylesheet>
\ No newline at end of file diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/pom.xml b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/pom.xml new file mode 100644 index 0000000000..bbb8acc81d --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/pom.xml @@ -0,0 +1,121 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +--> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution</artifactId> + <version>incubating-M1</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-distribution-tomcat-overlay</artifactId> + <packaging>pom</packaging> + <name>Tuscany Distribution Project - Tomcat Overlay</name> + <version>incubating-M1</version> + + <!-- + <dependencies> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-tuscany-samples</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-tuscany-core-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-tuscany-tools-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-axis2-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-celtix-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + </dependencies> + --> + + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <dependencies> + <dependency> + <groupId>ant</groupId> + <artifactId>ant-trax</artifactId> + <version>1.6.5</version> + </dependency> + </dependencies> + + <executions> + <execution> + <id>create-tomcat</id> + <phase>install</phase> + <configuration> + <tasks> + <ant inheritRefs="true" + antfile="configureTomcat.xml" dir="${basedir}" + target="prepareTomcat"> + <property name="target.dir" + value="${basedir}/../target/tuscany-dist" /> + <property name="user.home" value="${user.home}" /> + </ant> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + <execution> + <id>clean-tomcat</id> + <phase>clean</phase> + <configuration> + <tasks> + <ant inheritRefs="true" + antfile="configureTomcat.xml" dir="${basedir}" + target="clean"> + <property name="target.dir" + value="${basedir}/../target/tuscany-dist" /> + </ant> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/server.xsl b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/server.xsl new file mode 100644 index 0000000000..7f3deb8107 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tomcat-overlay/server.xsl @@ -0,0 +1,49 @@ +<!-- + Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. + + Licensed 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. + --> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> +<xsl:output indent="yes" /> + + <xsl:param name="classname"/> + <!-- xsl:template match="node() | @*"> + <xsl:copy> + <xsl:apply-templates select="node() | @*"/> + </xsl:copy> + </xsl:template --> + <xsl:template + match="@* | * | comment() | processing-instruction() | text()"> + <xsl:copy> + <xsl:apply-templates + select="@* | * | comment() | processing-instruction() | text()" /> + </xsl:copy> + </xsl:template> + + <xsl:template match="Host"> + <Host> + <xsl:attribute name="className"> + <xsl:text>org.apache.tuscany.tomcat.TuscanyHost</xsl:text> + </xsl:attribute> + <xsl:apply-templates select="@*" /> + <xsl:apply-templates + select="@* | * | comment() | processing-instruction() | text()" /> + </Host> + </xsl:template> + + <!-- xsl:template match="/"> + <xsl:apply-templates select="node() | @*" /> + </xsl:template --> +</xsl:stylesheet> + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tuscany-core-overlay/pom.xml b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-core-overlay/pom.xml new file mode 100644 index 0000000000..bb76b3b5ef --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-core-overlay/pom.xml @@ -0,0 +1,113 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +--> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution</artifactId> + <version>incubating-M1</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-distribution-tuscany-core-overlay</artifactId> + <packaging>pom</packaging> + <name>Tuscany Distribution Project - Tuscany Core Overlay</name> + <version>incubating-M1</version> + + <dependencies> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-core</artifactId> + <version>${pom.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tuscany.databinding</groupId> + <artifactId>tuscany-databinding-sdo</artifactId> + <version>${pom.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tuscany.sca.bindings</groupId> + <artifactId>tuscany-binding-jsonrpc</artifactId> + <version>${pom.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tuscany.sca.containers</groupId> + <artifactId>tuscany-container-rhino</artifactId> + <version>${pom.version}</version> + <exclusions> + <exclusion> + <groupId>org.apache.tuscany.sca.bindings</groupId> + <artifactId>tuscany-binding-axis2</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>org.apache.tuscany.sca.containers</groupId> + <artifactId>tuscany-container-java</artifactId> + <version>${pom.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tuscany.das</groupId> + <artifactId>tuscany-das-rdb</artifactId> + <version>${pom.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>tuscany-runtime-${project.version}</finalName> + <archive> + <manifest> + <addClasspath>true</addClasspath> + </manifest> + </archive> + </configuration> + <executions> + <execution> + <id>manifest-jar</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.0.1</version> + <executions> + <execution> + <id>overlay</id> + <phase>package</phase> + <goals> + <goal>directory</goal> + </goals> + </execution> + </executions> + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + </descriptors> + <finalName>tuscany</finalName> + <outputDirectory>${basedir}/../target</outputDirectory> + </configuration> + </plugin> + </plugins> + </build> +</project> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tuscany-core-overlay/src/main/assembly/bin.xml b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-core-overlay/src/main/assembly/bin.xml new file mode 100644 index 0000000000..6bc4113627 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-core-overlay/src/main/assembly/bin.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed 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. + --> +<assembly> + <id>dist</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <directory>tuscany-core-overlay/target</directory> + <outputDirectory>lib</outputDirectory> + <includes> + <include>tuscany-runtime-incubating-M1.jar</include> + </includes> + </fileSet> + </fileSets> + <dependencySets> + <dependencySet> + <outputDirectory>lib</outputDirectory> + </dependencySet> + </dependencySets> +</assembly> + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tuscany-polish/fixupJars.xml b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-polish/fixupJars.xml new file mode 100644 index 0000000000..8142364b78 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-polish/fixupJars.xml @@ -0,0 +1,112 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + --> +<project name="project" default="fixupJars"> + + <target name="fixupJars"> + <delete> + <fileset dir="${target.dir}/lib/axis2" includes="*.jar"> + <present present="both" targetdir="${target.dir}/lib" /> + </fileset> + <fileset dir="${target.dir}/lib/celtix" includes="*.jar"> + <present present="both" targetdir="${target.dir}/lib" /> + </fileset> + <fileset dir="${target.dir}/lib/tools" includes="*.jar"> + <present present="both" targetdir="${target.dir}/lib" /> + </fileset> + </delete> + <copy todir="${target.dir}/javadoc"> + <fileset dir="${target.dir}/../../build/javadoc"> + <include name="sca-api/**/*" /> + <include name="sdo-api/**/*" /> + <include name="tuscany-common/**/*" /> + <include name="tuscany-core/**/*" /> + <include name="tuscany-model/**/*" /> + <include name="tuscany-das-rdb/**/*" /> + <include name="tuscany-databinding-sdo/**/*" /> + </fileset> + </copy> + <copy todir="${target.dir}/javadoc"> <!-- Style sheets are bing hdden here. --> + <fileset dir="../../javadoc"> + <include name="**/*" /> + </fileset> + </copy> + <copy todir="${target.dir}/sampleapps"> + <fileset dir="../../sampleapps"> + <include name="**/*.htm*" /> + </fileset> + </copy> + <copy todir="${target.dir}"> + <fileset dir="../.."> + <include name="README.txt" /> + <include name="LICENSE.txt" /> + <include name="NOTICE" /> + <include name="GettingStarted.htm" /> + </fileset> + <fileset dir="../../.."> + <include name="STATUS" /> + <include name="PROPOSAL.txt" /> + </fileset> + </copy> + <zip destfile="${target.dir}/../tuscany-incubating-M1.zip"> + <zipfileset dir="${target.dir}" prefix="tuscany-incubating-M1"> + </zipfileset> + </zip> + <tar destfile="${target.dir}/../tuscany-incubating-M1.tar" longfile="gnu"> + <tarfileset dir="${target.dir}" prefix="tuscany-incubating-M1" mode="755"> + <include name="**/*.sh"/> + </tarfileset> + <tarfileset dir="${target.dir}" prefix="tuscany-incubating-M1"> + <exclude name="**/*.sh"/> + </tarfileset> + </tar> + <gzip zipfile="${target.dir}/../tuscany-incubating-M1.tar.gz" src="${target.dir}/../tuscany-incubating-M1.tar" /> + + <patternset id="exclusionList"> + <exclude name="**/target"/> + <exclude name="**/target/**/*"/> + <exclude name="**/.svn"/> + <exclude name="**/.svn/**/*"/> + <exclude name="**/build"/> + <exclude name="**/build/**/*"/> + <exclude name="**/.settings/**/*"/> + <exclude name="**/.classpath"/> + <exclude name="**/.project"/> + <exclude name="**/.wtpmodules"/> + <exclude name="**/surefire*"/> + <exclude name="**/cobertura.ser"/> + <exclude name="**/bin/*"/> + <exclude name="**/var/journal"/> + <exclude name="**/build.out*"/> + <exclude name="**/apache-tomcat-*.zip"/> + <exclude name="**/apache-tomcat-*.tar.gz"/> + </patternset> + + <zip destfile="${target.dir}/../tuscany-incubating-M1-src.zip"> + <zipfileset dir="${target.dir}/../../.." prefix="tuscany-incubating-M1-src"> + <patternset refid="exclusionList"/> + </zipfileset> + </zip> + <tar destfile="${target.dir}/../tuscany-incubating-M1-src.tar" longfile="gnu"> + <tarfileset dir="${target.dir}/../../.." prefix="tuscany-incubating-M1-src"> + <patternset refid="exclusionList"/> + </tarfileset> + </tar> + <gzip zipfile="${target.dir}/../tuscany-incubating-M1-src.tar.gz" src="${target.dir}/../tuscany-incubating-M1-src.tar" /> + + </target> + +</project> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tuscany-polish/pom.xml b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-polish/pom.xml new file mode 100644 index 0000000000..48340a3af0 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-polish/pom.xml @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. +--> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution</artifactId> + <version>incubating-M1</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-distribution-tuscany-polish</artifactId> + <packaging>pom</packaging> + <name>Tuscany Distribution Project - Tuscany Polish</name> + <version>incubating-M1</version> + + <!-- + <dependencies> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-tuscany-samples</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-tuscany-core-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-tuscany-tools-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-axis2-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-celtix-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution-tomcat-overlay</artifactId> + <version>${pom.version}</version> + <type>pom</type> + <scope>test</scope> + </dependency> + </dependencies> + --> + + <build> + <plugins> + <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <dependencies> + <dependency> + <groupId>ant</groupId> + <artifactId>ant-trax</artifactId> + <version>1.6.5</version> + </dependency> + </dependencies> + + <executions> + <execution> + <id>fixup-jars</id> + <phase>install</phase> + <configuration> + <tasks> + <ant inheritRefs="true" + antfile="fixupJars.xml" dir="${basedir}" + target="fixupJars"> + <property name="target.dir" + value="${basedir}/../target/tuscany-dist" /> + </ant> + </tasks> + </configuration> + <goals> + <goal>run</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> +</project> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tuscany-samples/pom.xml b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-samples/pom.xml new file mode 100644 index 0000000000..bbf04e3f6a --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-samples/pom.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + --> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution</artifactId> + <version>incubating-M1</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-distribution-tuscany-samples</artifactId> + <packaging>pom</packaging> + <name>Tuscany Distribution Project - Tuscany Samples Overlay</name> + <version>incubating-M1</version> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.0.1</version> + <executions> + <execution> + <id>overlay</id> + <phase>package</phase> + <goals> + <goal>directory</goal> + </goals> + </execution> + </executions> + + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + </descriptors> + <finalName>tuscany</finalName> + <outputDirectory>${basedir}/../target</outputDirectory> + </configuration> + </plugin> + </plugins> + </build> +</project> + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tuscany-samples/src/main/assembly/bin.xml b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-samples/src/main/assembly/bin.xml new file mode 100644 index 0000000000..c65e791ddd --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-samples/src/main/assembly/bin.xml @@ -0,0 +1,88 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed 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. + --> +<assembly> + <id>dist</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <directory>../sampleapps</directory> + <outputDirectory>sampleapps</outputDirectory> + <excludes> + <exclude>**/src/test/**/*</exclude> + <exclude>**/src/test</exclude> + <exclude>**/target</exclude> + <exclude>**/target/**/*</exclude> + <exclude>**/target/site/**/*</exclude> + <exclude>**/build</exclude> + <exclude>**/build/**/*</exclude> + <exclude>**/.settings/**/*</exclude> + <exclude>**/.classpath</exclude> + <exclude>**/.project</exclude> + <exclude>**/.wtpmodules</exclude> + <exclude>**/surefire*</exclude> + <exclude>**/cobertura.ser</exclude> + <exclude>**/bin/*</exclude> + <exclude>**/var/journal</exclude> + <exclude>**/build.out*</exclude> + </excludes> + </fileSet> + <fileSet> + <directory>../sampleapps</directory> + <outputDirectory>sampleapps</outputDirectory> + <includes> + <include>**/target/*.jar</include> + <include>**/target/*.war</include> + </includes> + </fileSet> + + <fileSet> + <directory>../samples</directory> + <outputDirectory>samples</outputDirectory> + <excludes> + <exclude>**/src/test/**/*</exclude> + <exclude>**/src/test</exclude> + <exclude>**/target/**/*</exclude> + <exclude>**/target</exclude> + <exclude>**/target/site/**/*</exclude> + <exclude>**/build</exclude> + <exclude>**/build/**/*</exclude> + <exclude>**/.settings</exclude> + <exclude>**/.settings/**/*</exclude> + <exclude>**/.classpath</exclude> + <exclude>**/.project</exclude> + <exclude>**/.wtpmodules</exclude> + <exclude>**/surefire*</exclude> + <exclude>**/cobertura.ser</exclude> + <exclude>**/bin/*</exclude> + <exclude>**/var/journal</exclude> + <exclude>**/build.out*</exclude> + </excludes> + </fileSet> + <fileSet> + <directory>../samples</directory> + <outputDirectory>samples</outputDirectory> + <includes> + <include>**/target/*.jar</include> + <include>**/target/*.war</include> + </includes> + </fileSet> + + </fileSets> +</assembly> diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tuscany-tools-overlay/pom.xml b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-tools-overlay/pom.xml new file mode 100644 index 0000000000..b9c95b9c83 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-tools-overlay/pom.xml @@ -0,0 +1,104 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + --> +<project> + <parent> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-distribution</artifactId> + <version>incubating-M1</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>tuscany-distribution-tuscany-tools-overlay</artifactId> + <packaging>pom</packaging> + <name>Tuscany Distribution Project - Tuscany Tools Overlay</name> + <version>incubating-M1</version> + + <dependencies> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-sca-tools</artifactId> + <version>${pom.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-sdo-tools</artifactId> + <version>${pom.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tuscany.sca.plugins</groupId> + <artifactId>tuscany-plugin-wsdl2java</artifactId> + <version>${pom.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tuscany.sca.plugins</groupId> + <artifactId>tuscany-plugin-java2wsdl</artifactId> + <version>${pom.version}</version> + </dependency> + <dependency> + <groupId>org.apache.tuscany</groupId> + <artifactId>tuscany-sdo-plugin</artifactId> + <version>${pom.version}</version> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <finalName>tuscany-tools-${project.version}</finalName> + <archive> + <manifest> + <addClasspath>true</addClasspath> + </manifest> + </archive> + </configuration> + <executions> + <execution> + <id>manifest-jar</id> + <phase>package</phase> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-assembly-plugin</artifactId> + <version>2.0.1</version> + <executions> + <execution> + <id>overlay</id> + <phase>package</phase> + <goals> + <goal>directory</goal> + </goals> + </execution> + </executions> + + <configuration> + <descriptors> + <descriptor>src/main/assembly/bin.xml</descriptor> + </descriptors> + <finalName>tuscany</finalName> + <outputDirectory>${basedir}/../target</outputDirectory> + </configuration> + </plugin> + </plugins> + </build> +</project> + diff --git a/sca-java-1.x/branches/java-post-M1/distribution/tuscany-tools-overlay/src/main/assembly/bin.xml b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-tools-overlay/src/main/assembly/bin.xml new file mode 100644 index 0000000000..90694fb5b2 --- /dev/null +++ b/sca-java-1.x/branches/java-post-M1/distribution/tuscany-tools-overlay/src/main/assembly/bin.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * Licensed 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. + --> +<assembly> + <id>dist</id> + <formats> + <format>dir</format> + </formats> + <includeBaseDirectory>false</includeBaseDirectory> + <fileSets> + <fileSet> + <directory>tuscany-tools-overlay/target</directory> + <outputDirectory>lib/tools</outputDirectory> + <includes> + <include>tuscany-tools-incubating-M1.jar</include> + </includes> + </fileSet> + </fileSets> + <dependencySets> + <dependencySet> + <outputDirectory>lib/tools</outputDirectory> + </dependencySet> + </dependencySets> +</assembly> + |