You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by st...@apache.org on 2005/05/11 18:03:09 UTC

svn commit: r169650 [2/2] - /incubator/beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF /incubator/beehive/trunk/samples/wsm-addressbook-enhanced/WEB-INF/src /incubator/beehive/trunk/samples/wsm-addressbook-fromWSDL/WEB-INF /incubator/beehive/trunk/samples/wsm-addressbook-fromWSDL/WEB-INF/src /incubator/beehive/trunk/samples/wsm-addressbook/WEB-INF /incubator/beehive/trunk/samples/wsm-addressbook/WEB-INF/src /incubator/beehive/trunk/samples/wsm-blank/WEB-INF /incubator/beehive/trunk/samples/wsm-blank/WEB-INF/src /incubator/beehive/trunk/samples/wsm-employee/WEB-INF /incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src /incubator/beehive/trunk/samples/wsm-petstore-dashboard /incubator/beehive/trunk/samples/wsm-petstore-dashboard/src /incubator/beehive/trunk/samples/wsm-samples/WEB-INF /incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src

Added: incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build-svn.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build-svn.xml?rev=169650&view=auto
==============================================================================
--- incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build-svn.xml (added)
+++ incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build-svn.xml Wed May 11 09:03:06 2005
@@ -0,0 +1,125 @@
+<?xml version="1.0" ?>
+
+<!--
+   Copyright 2004 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.
+ 
+   $Header:$
+ -->
+
+<project name="Employee Sample" default="build" basedir=".">
+
+  <import file="../../../../beehive-imports.xml" />
+
+  <property name="service.name" value="Employee" />
+
+  <property name="webapp.dir" location="../.." />
+  <property name="lib.dir" location="lib" />
+  <property name="src.dir" location="src" />
+  <property name="gen.dir" location="gen" />
+  <property name="classes.dir" location="classes" />
+  <property name="webservice.jar" value="${lib.dir}/${service.name}WS.jar" />
+  <property name="webservice.war" value="${service.name}WS.war" />
+
+  <path id="jars">
+    <fileset dir="${lib.dir}">
+      <include name="**/*.jar" />
+    </fileset>
+  </path>
+
+  
+  <!-- ========================================= -->
+  <!-- deploy - build deployable artifact        -->
+  <!-- ========================================= -->
+  
+  <target name="deploy">
+    <antcall target="deploy.war" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- deploy.war - build deployable artifact    -->
+  <!-- ========================================= -->
+  
+  <target name="deploy.war">
+    <jar jarfile="../../../${service.name}WS.war">
+      <fileset dir="..">
+        <exclude name="${src.dir}/**" />
+        <exclude name="${gen.dir}/**" />
+      </fileset>
+    </jar>
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- build - build jar-file                    -->
+  <!-- ========================================= -->
+
+  <target name="build">
+    <deploy-wsm webappDir="${webapp.dir}" />
+    <copy todir="${lib.dir}">
+      <fileset dir="../../controls-db/build" includes="dbControl.jar" />
+      <fileset dir="${beehive.home}/external/derby" includes="derby_46005.jar" />
+    </copy>
+    <antcall target="compile"/>
+    <jar jarfile="${lib.dir}/${service.name}WS.jar">
+      <fileset dir="${classes.dir}">
+        <exclude name="**/Test.class" />
+      </fileset>
+    </jar>
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- compile -                                 -->
+  <!-- ========================================= -->
+
+  <target name="compile" depends="dirs">
+    <taskdef
+        name="apt"
+        classname="org.apache.beehive.controls.runtime.generator.AptTask"
+        classpath="lib/beehive-controls.jar"
+        onerror="report" />
+    <apt
+        srcdir="${src.dir}"
+        destdir="${classes.dir}"
+        gendir="${gen.dir}"
+        compileByExtension="true" 
+        classpathref="jars"
+        srcExtensions="*.java,*.jcx,*.jcs,*.jws" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- clean - remove build files                -->
+  <!-- ========================================= -->
+
+  <target name="clean">
+    <delete file="velocity.log" />
+    <delete file="${lib.dir}/${service.name}WS.jar" />
+    <delete dir="${classes.dir}" />
+    <delete dir="${gen.dir}" />
+  </target>
+	
+
+  <!-- ========================================= -->
+  <!-- dirs - create dirs required for compile   -->
+  <!-- ========================================= -->
+
+  <target name="dirs">
+    <mkdir dir="${classes.dir}" />
+    <mkdir dir="${gen.dir}" />
+  </target>
+
+</project>

Propchange: incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build-svn.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.properties
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.properties?rev=169650&view=auto
==============================================================================
--- incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.properties (added)
+++ incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.properties Wed May 11 09:03:06 2005
@@ -0,0 +1,4 @@
+#
+# Edit this if you have moved the sample out of BEEHIVE_HOME/samples.
+#
+beehive.home=../../../..

Propchange: incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.xml?rev=169650&view=auto
==============================================================================
--- incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.xml (added)
+++ incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.xml Wed May 11 09:03:06 2005
@@ -0,0 +1,143 @@
+<?xml version="1.0" ?>
+
+<!--
+   Copyright 2004 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.
+ 
+   $Header:$
+ -->
+
+<project name="Employee Database Sample" default="build" basedir=".">
+  
+  <property file="build.properties"/>
+
+  <import file="${beehive.home}/beehive-imports.xml" />
+  <import file="${beehive.home}/ant/beehive-tools.xml" />
+
+  <property name="service.name" value="Employee" />
+
+  <property name="webapp.dir" location="../.." />
+  <property name="web.inf.dir" location="${webapp.dir}/web-inf" />
+  <property name="attachments.dir" location="${web.inf.dir}/attachments" />
+  <property name="classes.dir" location="${web.inf.dir}/classes" />
+  <property name="gen.dir" location="${web.inf.dir}/gen" />
+  <property name="lib.dir" location="${web.inf.dir}/lib" />
+  <property name="src.dir" location="${web.inf.dir}/src" />
+  <property name="webservice.jar" value="${lib.dir}/EmployeeWS.jar" />
+  <property name="webservice.war" value="EmployeeWS.war" />
+
+  <path id="lib.path">
+    <fileset dir="${lib.dir}">
+      <include name="**/*.jar" />
+    </fileset>
+  </path>
+
+  <path id="build.classpath">
+    <path refid="lib.path"/>
+    <pathelement location="${classes.dir}"/>
+  </path>
+    
+  
+  <!-- ========================================= -->
+  <!-- deploy.war - build deployable artifact    -->
+  <!-- ========================================= -->
+  
+  <target name="deploy.war">
+    <jar jarfile="../../../${webservice.war}">
+      <fileset dir="../..">
+        <exclude name="${src.dir}/**" />
+        <exclude name="${gen.dir}/**" />
+      </fileset>
+    </jar>
+  </target>
+  
+  <!-- ========================================= -->
+  <!-- build - build jar-file                    -->
+  <!-- ========================================= -->
+
+  <target name="build" depends="dirs">
+    <antcall target="deploy.beehive.webservice.runtime" />
+    <copy todir="${lib.dir}">
+      <fileset dir="../../controls-db/build" includes="dbControl.jar" />
+      <fileset dir="${beehive.home}/external/derby" includes="derby_46005.jar" />
+    </copy>
+    <antcall target="compile"/>
+
+    <build-webservices srcdir="${src.dir}"
+                       destdir="${classes.dir}"
+                       tempdir="${gen.dir}"
+                       classpathref="build.classpath"/>
+
+    <jar jarfile="${webservice.jar}">
+      <fileset dir="${classes.dir}">
+        <exclude name="**/Test.class" />
+      </fileset>
+    </jar>
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- compile -                                 -->
+  <!-- ========================================= -->
+
+  <target name="compile" depends="dirs">
+    <taskdef
+        name="apt"
+        classname="org.apache.beehive.controls.runtime.generator.AptTask"
+        classpath="lib/beehive-controls.jar"
+        onerror="report" />
+    <apt
+        srcdir="${src.dir}"
+        destdir="${classes.dir}"
+        gendir="${gen.dir}"
+        compileByExtension="true" 
+        classpathref="jars"
+        srcExtensions="*.java,*.jcx,*.jcs,*.jws" />
+  </target>
+
+    
+  <!-- ========================================= -->
+  <!-- clean - remove binary files               -->
+  <!-- ========================================= -->
+
+  <target name="clean">
+    <delete dir="${attachments.dir}" />
+    <delete dir="${classes.dir}" />
+    <delete dir="${gen.dir}" />
+    <delete dir="${lib.dir}" />
+    <delete file="velocity.log" />
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- dirs - create dirs required for compile   -->
+  <!-- ========================================= -->
+
+  <target name="dirs">
+    <mkdir dir="${attachments.dir}" />
+    <mkdir dir="${classes.dir}" />
+    <mkdir dir="${gen.dir}" />
+    <mkdir dir="${lib.dir}" />
+  </target>
+
+  
+  <!-- copy all dependencies -->
+  <target name="deploy.beehive.webservice.runtime" depends="dirs">
+    <copy todir="${lib.dir}">
+      <fileset file="${beehive.home}/lib/common/*.jar" />
+      <fileset file="${beehive.home}/lib/controls/beehive-controls.jar" />
+      <fileset file="${beehive.home}/lib/wsm/*.jar" />
+    </copy>
+  </target>
+</project>

Propchange: incubator/beehive/trunk/samples/wsm-employee/WEB-INF/src/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.properties
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.properties?rev=169650&view=auto
==============================================================================
--- incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.properties (added)
+++ incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.properties Wed May 11 09:03:06 2005
@@ -0,0 +1,4 @@
+#
+# Edit this if you have moved the sample out of BEEHIVE_HOME/samples.
+#
+beehive.home=../../..

Propchange: incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.xml?rev=169650&view=auto
==============================================================================
--- incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.xml (added)
+++ incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.xml Wed May 11 09:03:06 2005
@@ -0,0 +1,136 @@
+<?xml version="1.0" ?>
+
+<!--
+   Copyright 2004 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.
+ 
+   $Header:$
+ -->
+
+<project name="wsm-petstore-dashboard" basedir="." default="all">
+
+  <!-- MODIFY THIS PROPERTY IF YOU MOVE THE SAMPLE -->	
+    
+  <property file="build.properties"/>
+
+  <import file="${beehive.home}/beehive-imports.xml" />
+
+  <property
+      name="wsdl.url" 
+      value="http://localhost:8080/petstoreWeb/PetstoreInventoryManager.jws?wsdl" />
+  
+  <property name="images.dir" value="images" />
+  <property name="lib.dir" value="lib" />
+  <property name="log.dir" value="logs" />
+  <property name="src.dir" value="src" />
+  <property name="build.dir" value="build" />
+  <property name="gen.dir" value="${build.dir}/gen" />
+  <property name="classes.dir" value="${build.dir}/classes" />
+
+  <path id="jars">
+    <fileset dir="${lib.dir}">
+      <include name="*.jar"/>
+    </fileset>
+  </path>
+
+  
+  <target name="all" depends="genClient, compile, run" />
+
+  	
+  <target name="compile" depends="genClient">
+    <javac
+        srcdir="${gen.dir}"
+        destdir="${classes.dir}"
+        classpathref="jars"
+        failonerror="true"
+        debug="true"
+        source="1.4" />
+    <javac
+        srcdir="${src.dir}"
+        destdir="${classes.dir}"
+        classpathref="jars"
+        failonerror="true"
+        debug="true"
+        source="1.4" />
+  </target>	
+    
+  
+  <target name="genClient" depends="dirs, deploy.webservice.runtime">
+    <taskdef
+        name="wsdl2java"
+        classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"
+        loaderref="axis" >
+      <classpath refid="jars"/>
+    </taskdef>
+    <wsdl2java
+        url="${wsdl.url}"
+        output="${gen.dir}"
+        testcase="yes"
+        debug="true" />
+  </target>
+
+
+  	
+  <target name="test" depends="compile">
+    <junit printsummary="yes" haltonfailure="yes" showoutput="yes">
+      <classpath>
+        <pathelement location= "${classes.dir}"/>
+        <path refid="jars"/>
+      </classpath>
+      <batchtest fork="yes" todir=".">
+        <fileset dir="${classes.dir}">
+          <include name="**/*Test*.class"/>
+	</fileset>
+      </batchtest>
+    </junit>
+  </target>
+	
+
+  <target name="run" >
+    <java classname="ui.PetStoreDashboard" fork="true">
+      <classpath>
+        <pathelement location= "${build.dir}"/>
+        <pathelement location= "${images.dir}"/>
+        <path refid="jars"/>
+      </classpath>
+    </java>
+  </target>
+
+  
+  <target name="deploy.webservice.runtime" depends="dirs">
+    <copy todir="${lib.dir}" failOnError="true">
+      <fileset dir="${beehive.home}/wsm/lib" includes="**/*.jar"/>
+      <fileset refid="log4j.fileset"/>
+      <fileset refid="xbean.fileset"/>
+      <fileset refid="jsr173.fileset"/>
+      <fileset refid="controls.fileset"/>
+      <fileset refid="velocity.fileset"/>
+    </copy>
+  </target>
+
+    	
+  <target name="dirs">
+    <mkdir dir="${lib.dir}" />
+    <mkdir dir="${build.dir}" />
+    <mkdir dir="${classes.dir}" />
+    <mkdir dir="${gen.dir}" />
+  </target>	
+
+  
+  <target name="clean">
+    <delete dir="${build.dir}" />
+    <delete dir="${log.dir}" />
+  </target>
+
+</project>

Propchange: incubator/beehive/trunk/samples/wsm-petstore-dashboard/src/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build-svn.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build-svn.xml?rev=169650&view=auto
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build-svn.xml (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build-svn.xml Wed May 11 09:03:06 2005
@@ -0,0 +1,158 @@
+<?xml version="1.0" ?>
+
+<!--
+   Copyright 2004 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.
+ 
+   $Header:$
+ -->
+
+<project name="wsm-samples" default="build" basedir=".">
+
+  <import file="../../../../beehive-imports.xml" />
+
+  <property name="service.name" value="wsm-samples" />
+  
+  <property name="webapp.dir" location="../.." />
+  <property name="web.inf.dir" value="${webapp.dir}/WEB-INF" />
+  <property name="lib.dir" value="${web.inf.dir}/lib" />
+  <property name="src.dir" value="${web.inf.dir}/src" />
+  <property name="attachments.dir" value="${web.inf.dir}/attachments" />
+  <property name="classes.dir" value="${web.inf.dir}/classes" />
+  <property name="gen.dir" value="${web.inf.dir}/.tmpbeansrc" />
+  <property name="webservice.jar" value="${lib.dir}/${service.name}WS.jar" />
+  <property name="webservice.war" value="${service.name}WS.war" />
+  
+  <condition property="isJDK15">
+    <equals arg1="${ant.java.version}" arg2="1.5" />
+  </condition>
+
+  <path id="lib.path">
+    <fileset dir="${lib.dir}">
+      <include name="**/*.jar" />
+    </fileset>
+  </path>
+
+  <path id="build.classpath">
+    <path refid="lib.path"/>
+    <pathelement location="${classes.dir}"/>
+  </path>
+
+  
+  <!-- ========================================= -->
+  <!-- deploy - build deployable artifact        -->
+  <!-- ========================================= -->
+  
+  <target name="deploy">
+    <antcall target="deploy.war" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- deploy.war - build deployable artifact    -->
+  <!-- ========================================= -->
+  
+  <target name="deploy.war">
+    <jar destfile="${to.dir}/${webservice.war}">
+      <fileset dir="${webapp.dir}">
+        <exclude name="WEB-INF/classes/**" />
+        <exclude name="WEB-INF/.tmpbeansrc/**" />
+        <exclude name="WEB-INF/src/**" />
+        <exclude name="**/*build*.xml" />
+      </fileset>
+    </jar>
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- build - create jar in ${lib.dir}          -->
+  <!-- ========================================= -->
+
+  <target name="build" depends="dirs">
+    <antcall target="deploy.beehive.webservice.runtime" />
+    <antcall target="build.beehive.webservice" />
+    <jar jarfile="${webservice.jar}">
+      <fileset dir="${classes.dir}" />
+    </jar>
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- clean - remove binary files               -->
+  <!-- ========================================= -->
+
+  <target name="clean">
+    <delete dir="${attachments.dir}" />
+    <delete file="${webservice.jar}" />
+    <delete file="velocity.log" />
+    <delete dir="${lib.dir}" />
+   <clean-webapp webappDir="${webapp.dir}" />
+    <delete file="${webservice.jar}" />
+   <delete file="${webservice.war}" />
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- dirs - create dirs required for compile   -->
+  <!-- ========================================= -->
+
+  <target name="dirs">
+    <mkdir dir="${lib.dir}" />
+    <mkdir dir="${attachments.dir}" />
+    <mkdir dir="${classes.dir}" />
+    <mkdir dir="${gen.dir}" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- deploy.beehive.webservice.runtime -       -->
+  <!-- ========================================= -->
+
+  <target name="deploy.beehive.webservice.runtime">
+    <deploy-wsm webappDir="${webapp.dir}" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- build.beehive.webservice -                -->
+  <!-- ========================================= -->
+<!--
+  <target name="build.beehive.webservice">
+    <build-webapp webappDir="${webapp.dir}" />
+  </target>
+-->
+
+  <!-- build all beehive webservice binaries -->
+  <target name="build.beehive.webservice">
+    <taskdef name="apt" 
+        classname="org.apache.beehive.controls.runtime.generator.AptTask" 
+        classpathref="lib.path" 
+        onerror="report" />
+    <apt
+        srcdir="${src.dir}" 
+        destdir="${classes.dir}"
+        gendir="${gen.dir}"
+        classpathref="build.classpath" 
+        compileByExtension="true" 
+        srcExtensions="*.java,*.jws" 
+        failonerror="false"
+        debug="true" />
+  	
+    <copy todir="${classes.dir}" overwrite="true">
+         <fileset dir="${src.dir}" includes="**/*.properties"/>
+     </copy>
+  	
+  </target>
+
+</project>

Propchange: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build-svn.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.properties
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.properties?rev=169650&view=auto
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.properties (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.properties Wed May 11 09:03:06 2005
@@ -0,0 +1,4 @@
+#
+# Edit this if you have moved the sample out of BEEHIVE_HOME/samples.
+#
+beehive.home=../../../..

Propchange: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml?rev=169650&view=auto
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml Wed May 11 09:03:06 2005
@@ -0,0 +1,123 @@
+<?xml version="1.0" ?>
+
+<!--
+   Copyright 2004 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.
+ 
+   $Header:$
+ -->
+
+<project name="Beehive/WSM Sample Web Services" default="build" basedir=".">
+  
+  <property file="build.properties"/>
+
+  <import file="${beehive.home}/beehive-imports.xml" />
+  <import file="${beehive.home}/ant/beehive-tools.xml" />
+
+  <property name="service.name" value="wsm-samples" />
+
+  <property name="webapp.dir" location="../.." />
+  <property name="web.inf.dir" location="${webapp.dir}/WEB-INF" />
+  <property name="attachments.dir" location="${web.inf.dir}/attachments" />
+  <property name="classes.dir" location="${web.inf.dir}/classes" />
+  <property name="gen.dir" location="${web.inf.dir}/gen" />
+  <property name="lib.dir" location="${web.inf.dir}/lib" />
+  <property name="src.dir" location="${web.inf.dir}/src" />
+  <property name="webservice.jar" value="${lib.dir}/${service.name}WS.jar" />
+  <property name="webservice.war" value="${service.name}WS.war" />
+
+  <path id="lib.path">
+    <fileset dir="${lib.dir}">
+      <include name="**/*.jar" />
+    </fileset>
+  </path>
+
+  <path id="build.classpath">
+    <path refid="lib.path"/>
+    <pathelement location="${classes.dir}"/>
+  </path>
+    
+  
+  <!-- ========================================= -->
+  <!-- deploy - build deployable artifact        -->
+  <!-- ========================================= -->
+  
+  <target name="deploy">
+    <antcall target="deploy.war" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- deploy.war - build deployable artifact    -->
+  <!-- ========================================= -->
+  
+  <target name="deploy.war">
+    <jar jarfile="../../../${webservice.war}">
+      <fileset dir="../..">
+        <exclude name="${src.dir}/**" />
+        <exclude name="${gen.dir}/**" />
+      </fileset>
+    </jar>
+  </target>
+  
+
+  <!-- ========================================= -->
+  <!-- build - build all binaries                -->
+  <!-- ========================================= -->
+
+  <target name="build" depends="dirs">
+    <antcall target="deploy.beehive.webservice.runtime" />
+     <build-webservices srcdir="${src.dir}"
+                        destdir="${classes.dir}"
+                        tempdir="${gen.dir}"
+                        classpathref="build.classpath"/>
+    <jar jarfile="${webservice.jar}">
+      <fileset dir="${classes.dir}" />
+    </jar>
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- clean - remove binary files               -->
+  <!-- ========================================= -->
+
+  <target name="clean">
+    <delete dir="${attachments.dir}" />
+    <delete dir="${classes.dir}" />
+    <delete dir="${gen.dir}" />
+    <delete dir="${lib.dir}" />
+    <delete file="velocity.log" />
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- dirs - create dirs required for compile   -->
+  <!-- ========================================= -->
+
+  <target name="dirs">
+    <mkdir dir="${attachments.dir}" />
+    <mkdir dir="${classes.dir}" />
+    <mkdir dir="${gen.dir}" />
+    <mkdir dir="${lib.dir}" />
+  </target>
+
+  <!-- copy all dependencies -->
+  <target name="deploy.beehive.webservice.runtime" depends="dirs">
+    <copy todir="${lib.dir}">
+      <fileset file="${beehive.home}/lib/common/*.jar" />
+      <fileset file="${beehive.home}/lib/controls/beehive-controls.jar" />
+      <fileset file="${beehive.home}/lib/wsm/*.jar" />
+    </copy>
+  </target>
+</project>

Propchange: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native