Pinaki Poddar 9301f42f4f Add JSE/JEE Ant build files
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@946811 13f79535-47bb-0310-9956-ffa450edef68
2010-05-20 22:12:24 +00:00

82 lines
3.1 KiB
XML

<?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.
-->
<!-- ====================================================================== -->
<!-- -->
<!-- Ant build script to build/package JSE version of OpenBooks -->
<!-- -->
<!-- ====================================================================== -->
<project name="OpenBooks.JSE" default="package">
<target name="package"
description="Build, package and deploy OpenBooks as a Swing-based JSE application">
<delete file="${target.dir}/openbooks.jar" failonerror="false"/>
<delete file="${target.dir}/openbooks.zip" failonerror="false"/>
<jar destfile="${target.dir}/openbooks.jar" basedir="${classes.dir}">
<exclude name="junit/**" />
</jar>
<jar destfile="${target.dir}/openbooks.jar"
basedir="${rsrc.dir}"
update="true">
<include name="images/*" />
</jar>
<!-- ASF released jars must include License and Notice files -->
<jar destfile="${target.dir}/openbooks.jar"
basedir="${basedir}"
update="true">
<include name="NOTICE.txt"/>
<include name="LICENSE.txt"/>
</jar>
<zip destfile="${target.dir}/openbooks.zip" basedir="${basedir}">
<include name="run.properties" />
<include name="run.xml" />
<include name="index.html" />
<include name="NOTICE.txt"/>
<include name="LICENSE.txt"/>
</zip>
<zip destfile="${target.dir}/openbooks.zip" basedir="${target.dir}" update="true">
<include name="openbooks.jar" />
</zip>
<zip destfile="${target.dir}/openbooks.zip" basedir="${rsrc.dir}" update="true">
<include name="load.properties" />
<include name="demo.properties" />
<include name="META-INF/persistence.xml" />
<include name="slides/**" />
</zip>
<zip destfile="${target.dir}/openbooks.zip" basedir="${target.dir}" update="true">
<include name="source/**" />
</zip>
<delete dir="${deploy.dir}" failonerror="false"/>
<mkdir dir="${deploy.dir}"/>
<unzip dest="${deploy.dir}" src="${target.dir}/openbooks.zip" overwrite="true"/>
</target>
<target name="compile"
description="Compile classes.">
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true">
<classpath refid="compile.classpath" />
</javac>
</target>
</project>