blob: ec58bce406b799deb5b9e2d2cdd54150f1372ee3 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
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="OFBiz - Shark" default="jar" basedir=".">
<import file="../../common.xml"/>
<!-- ================================================================== -->
<!-- Initialization of all property settings -->
<!-- ================================================================== -->
<property name="desc" value="Shark Component"/>
<property name="name" value="ofbiz-shark"/>
<path id="local.class.path">
<fileset dir="${lib.dir}" includes="*.jar"/>
<fileset dir="../../framework/base/lib" includes="*.jar"/>
<fileset dir="../../framework/base/lib/commons" includes="*.jar"/>
<fileset dir="../../framework/base/lib/j2eespecs" includes="*.jar"/>
<fileset dir="../../framework/base/lib/scripting" includes="*.jar"/>
<fileset dir="../../framework/base/build/lib" includes="*.jar"/>
<fileset dir="../../framework/entity/lib" includes="*.jar"/>
<fileset dir="../../framework/entity/build/lib" includes="*.jar"/>
<fileset dir="../../framework/security/build/lib" includes="*.jar"/>
<fileset dir="../../framework/service/lib" includes="*.jar"/>
<fileset dir="../../framework/service/build/lib" includes="*.jar"/>
<fileset dir="../../framework/entityext/build/lib" includes="*.jar"/>
<fileset dir="../../framework/common/build/lib" includes="*.jar"/>
</path>
<patternset id="src.exc.set">
<exclude name="org/ofbiz/shark/SharkGuiContainer.java"/>
</patternset>
<!-- ================================================================== -->
<!-- Compilation of the source files -->
<!-- ================================================================== -->
<target name="classes" depends="prepare">
<javac16>
<src path="${src.dir}"/>
</javac16>
</target>
<!-- ================================================================== -->
<!-- Build JavaDoc -->
<!-- ================================================================== -->
<target name="docs" depends="prepare-docs">
<!-- commented out to be synchronized with the build wich is not done by default
<default-javadoc>
<fileset dir="${src.dir}" defaultexcludes="yes">
<patternset refid="src.inc.set"/>
<patternset refid="src.exc.set"/>
</fileset>
</default-javadoc>
-->
</target>
<!-- ================================================================== -->
<!-- Copy Libs -->
<!-- ================================================================== -->
<target name="copyLibs">
<property file="shark-build.properties"/>
<fail unless="shark.libs"/>
<echo message="Obtained shark.libs from shark-build.properties: ${shark.libs}"/>
<delete includeemptydirs="true">
<fileset dir="lib" includes="**/*" excludes="License.txt"/>
</delete>
<copy todir="lib" flatten="true">
<fileset dir="${shark.libs}/wrapper" includes="*.jar" excludes="**/*-dods.jar"/>
<fileset dir="${shark.libs}/engine" includes="*.jar" excludes="**/*-dods.jar"/>
<fileset dir="${shark.libs}" includes="*.jar" excludes="**/*-dods.jar"/>
</copy>
</target>
</project>