Author: lresende
Date: Mon Aug 13 23:57:46 2007
New Revision: 565645
URL: http://svn.apache.org/viewvc?view=rev&rev=565645
Log:
Adding ant build for helloworld-ws-sdo-webapp sample
Added:
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/build.xml
(with props)
Added: incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/build.xml
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/build.xml?view=auto&rev=565645
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/build.xml
(added)
+++ incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/build.xml Mon
Aug 13 23:57:46 2007
@@ -0,0 +1,125 @@
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<project name="sample-helloworld-ws-sdo-webapp" default="package">
+ <property file="${user.home}/tuscany/build.properties" />
+ <property file="${user.home}/build.properties" />
+
+ <property name="tuscany.sca.manifest.location"
value="../../lib/tuscany-sca-manifest.jar"/>
+ <property name="tuscany.sca.lib.location" value="../../lib"/>
+ <property name="tuscany.sca.modules.location" value="../../modules"/>
+
+ <path id="project.classpath">
+ <pathelement path="target/classes"/>
+ <pathelement path="target/sdo-source"/>
+ <pathelement location="${tuscany.sca.manifest.location}"/>
+ </path>
+
+ <target name="init">
+ <mkdir dir="target/classes"/>
+ <mkdir dir="target/sdo-source"/>
+ </target>
+
+ <target name="generate-sdo" depends="init">
+ <java classname="org.apache.tuscany.sdo.generate.XSD2JavaGenerator"
fork="true">
+ <arg value="-targetDirectory"/>
+ <arg value="target/sdo-source"/>
+ <arg value="-javaPackage"/>
+ <arg value="helloworld.type"/>
+ <arg value="-prefix"/>
+ <arg value="Type"/>
+ <arg value="-noNotification"/>
+ <arg value="src/main/resources/wsdl/helloworld.xsd"/>
+
+ <classpath refid="project.classpath"/>
+ </java>
+ <java classname="org.apache.tuscany.sdo.generate.XSD2JavaGenerator"
fork="true">
+ <arg value="-targetDirectory"/>
+ <arg value="target/sdo-source"/>
+ <arg value="-javaPackage"/>
+ <arg value="helloworld"/>
+ <arg value="-prefix"/>
+ <arg value="Helloworld"/>
+ <arg value="-noNotification"/>
+ <arg value="src/main/resources/wsdl/helloworld.wsdl"/>
+
+ <classpath refid="project.classpath"/>
+ </java>
+ </target>
+
+ <target name="compile" depends="init, generate-sdo">
+ <javac srcdir="src/main/java"
+ destdir="target/classes"
+ debug="on"
+ source="1.5"
+ target="1.5">
+ <classpath refid="project.classpath"/>
+ </javac>
+ <copy todir="target/classes">
+ <fileset dir="src/main/resources"/>
+ </copy>
+ </target>
+
+ <target name="package" depends="compile">
+ <war destfile="target/sample-helloworld-ws-sdo-webapp.war"
+ webxml="src/main/webapp/WEB-INF/web.xml">
+ <fileset dir="src/main/webapp"/>
+ <zipfileset dir="${tuscany.sca.modules.location}"
prefix="WEB-INF/lib">
+ <include name="sca-api-1.0-incubating-SNAPSHOT.jar"/>
+ <include name="tuscany-assembly-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-assembly-xml-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-contribution-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-contribution-impl-1.0-incubating-SNAPSHOT.jar"/>
+ <include name="tuscany-core-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-core-databinding-1.0-incubating-SNAPSHOT.jar"/>
+ <include name="tuscany-core-spi-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-databinding-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-extension-helper-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-host-embedded-1.0-incubating-SNAPSHOT.jar"/>
+ <include name="tuscany-host-http-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-host-webapp-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-implementation-java-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-implementation-java-runtime-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-implementation-java-xml-1.0-incubating-SNAPSHOT.jar"/>
+ <include name="tuscany-interface-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-interface-java-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-interface-java-runtime-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-interface-java-xml-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-interface-wsdl-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-interface-wsdl-runtime-1.0-incubating-SNAPSHOT.jar"/>
+ <include
name="tuscany-interface-wsdl-xml-1.0-incubating-SNAPSHOT.jar"/>
+ <include name="tuscany-policy-1.0-incubating-SNAPSHOT.jar"/>
+ </zipfileset>
+ <lib dir="${tuscany.sca.lib.location}">
+ <include name="geronimo-commonj_1.1_spec-1.0.jar"/>
+ <include name="stax-api-1.0.1.jar"/>
+ <include name="wsdl4j-1.6.2.jar"/>
+ <include name="wstx-asl-3.2.0.jar"/>
+ <include name="XmlSchema-1.3.1.jar"/>
+ <include name="**/../../modules/*.jar"/>
+ </lib>
+ <classes dir="target/classes"/>
+ </war>
+ </target>
+
+ <target name="clean">
+ <delete quiet="true" includeemptydirs="true">
+ <fileset dir="target"/>
+ </delete>
+ </target>
+</project>
Propchange:
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/build.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
incubator/tuscany/java/sca/samples/helloworld-ws-sdo-webapp/build.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]