109 lines
3.9 KiB
XML
109 lines
3.9 KiB
XML
<?xml version="1.0" ?>
|
|
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
(the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
|
|
$Header:$
|
|
-->
|
|
|
|
<project name="Beehive/SystemControls/WebService" default="build" basedir=".">
|
|
|
|
<property file="build.properties"/>
|
|
<property file="../build.properties"/>
|
|
|
|
<import file="${beehive.home}/beehive-imports.xml"/>
|
|
|
|
<property name="service.name" value="blank"/>
|
|
|
|
<property name="src.dir" location="src"/>
|
|
<property name="web.dir" location="web"/>
|
|
<property name="web.inf.dir" location="${build.dir}/WEB-INF"/>
|
|
<property name="classes.dir" location="${web.inf.dir}/classes"/>
|
|
<property name="gen.dir" location="${web.inf.dir}/gen"/>
|
|
|
|
<property name="webservice.war.name" value="${service.name}WS.war"/>
|
|
|
|
<!-- ========================================= -->
|
|
<!-- war - build deployable artifact -->
|
|
<!-- ========================================= -->
|
|
<target name="war">
|
|
<jar jarfile="${service.name}.war">
|
|
<fileset dir="${build.dir}">
|
|
<exclude name="WEB-INF/gen/**"/>
|
|
</fileset>
|
|
</jar>
|
|
</target>
|
|
|
|
<!-- ========================================= -->
|
|
<!-- build - build all binaries -->
|
|
<!-- ========================================= -->
|
|
<target name="build">
|
|
<mkdir dir="${build.dir}"/>
|
|
<mkdir dir="${classes.dir}"/>
|
|
|
|
<copy todir="${build.dir}/WEB-INF/lib">
|
|
<fileset dir="${beehive.home}/external/axis-1.3/" includes="*.jar"/>
|
|
<fileset dir="../external/beehive-wsm-snapshot/" includes="*.jar"/>
|
|
<fileset refid="log4j.fileset"/>
|
|
<fileset refid="xbean.fileset"/>
|
|
<fileset refid="jsr173.fileset"/>
|
|
<fileset refid="controls.fileset"/>
|
|
<fileset refid="velocity.fileset"/>
|
|
<fileset refid="commons-discovery.fileset"/>
|
|
<fileset refid="commons-logging.fileset"/>
|
|
</copy>
|
|
|
|
<copy todir="${build.dir}/WEB-INF/lib" file="${mailapi.jar}"/>
|
|
<copy todir="${build.dir}/WEB-INF/lib" file="${activation.jar}"/>
|
|
|
|
<path id="build.classpath">
|
|
<pathelement location="${classes.dir}"/>
|
|
<fileset dir="${build.dir}/WEB-INF/lib" includes="*.jar"/>
|
|
</path>
|
|
|
|
<taskdef name="apt"
|
|
classname="org.apache.beehive.controls.runtime.generator.AptTask"
|
|
classpathref="build.classpath"
|
|
onerror="fail"/>
|
|
|
|
<apt srcdir="${src.dir}"
|
|
destdir="${classes.dir}"
|
|
gendir="${gen.dir}"
|
|
classpathref="build.classpath"
|
|
compileByExtension="true"
|
|
debug="true"/>
|
|
|
|
<copy todir="${classes.dir}">
|
|
<fileset dir="${src.dir}">
|
|
<include name="**/*.gif"/>
|
|
<include name="**/*.jpg"/>
|
|
</fileset>
|
|
</copy>
|
|
|
|
<copy todir="${build.dir}">
|
|
<fileset dir="${web.dir}"/>
|
|
</copy>
|
|
</target>
|
|
|
|
<!-- ========================================= -->
|
|
<!-- clean - remove binary files -->
|
|
<!-- ========================================= -->
|
|
<target name="clean">
|
|
<delete dir="${build.dir}"/>
|
|
</target>
|
|
|
|
</project>
|