mirror of
https://github.com/apache/openjpa.git
synced 2025-02-16 06:56:40 +00:00
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@946811 13f79535-47bb-0310-9956-ffa450edef68
54 lines
2.2 KiB
XML
54 lines
2.2 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 for JEE version of OpenBooks -->
|
|
<!-- -->
|
|
<!-- ====================================================================== -->
|
|
|
|
<project name="OpenBooks.JEE" default="package">
|
|
|
|
<target name="package"
|
|
description="Build, package and deploy OpenBooks as a WAR application in an Application Server">
|
|
<delete file="${deploy.dir}/openbook.war" failonerror="false"/>
|
|
<mkdir dir="${classes.dir}/META-INF"/>
|
|
<copy file="${rsrc.dir}/META-INF/persistence.xml" todir="${classes.dir}/META-INF"/>
|
|
<war destfile="openbooks.war" webxml="${rsrc.dir}/META-INF/web.xml" filesonly="true">
|
|
<fileset dir="${web.dir}"/>
|
|
<classes dir="${classes.dir}" />
|
|
<fileset dir="${rsrc.dir}">
|
|
<include name="images/Add2Cart.jpg"/>
|
|
<include name="images/OpenBooks.jpg"/>
|
|
</fileset>
|
|
</war>
|
|
<move file="openbooks.war" todir="${deploy.dir}" overwrite="true"/>
|
|
</target>
|
|
|
|
<target name="compile"
|
|
description="Compile classes.">
|
|
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true">
|
|
<classpath refid="compile.classpath" />
|
|
<exclude name="jpa/tools/**/*.java"/>
|
|
<exclude name="openbook/client/**/*.java"/>
|
|
</javac>
|
|
</target>
|
|
|
|
</project>
|