2001-01-31 13:48:40 -07:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
The contents of this file are subject to the Mozilla Public License Version 1.1
|
|
|
|
(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.mozilla.org/MPL/>.
|
|
|
|
|
|
|
|
Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
|
|
|
WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
|
|
|
language governing rights and limitations under the License.
|
|
|
|
|
|
|
|
The Original Code is the Venice Web Community System.
|
|
|
|
|
|
|
|
The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
|
|
|
for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
|
|
|
Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
-->
|
|
|
|
<project name="Venice" default="compile" basedir=".">
|
|
|
|
<!-- Adapted from default Ant buildfile - EJB 12/29/Y2K -->
|
|
|
|
|
|
|
|
<!-- Global property names -->
|
|
|
|
<property name="app.name" value="venice"/>
|
2002-01-06 19:26:50 -07:00
|
|
|
<property name="deploy.home" value="/home/erbo/venice"/>
|
2001-01-31 13:48:40 -07:00
|
|
|
<property name="dist.home" value="${deploy.home}"/>
|
|
|
|
<property name="dist.src" value="${app.name}.jar"/>
|
|
|
|
<property name="dist.war" value="${app.name}.war"/>
|
|
|
|
<property name="javadoc.home" value="${deploy.home}/javadoc"/>
|
|
|
|
|
2002-01-06 19:05:37 -07:00
|
|
|
<!-- Build the base directories that fastupdate requires. -->
|
|
|
|
<target name="mkbasedirs">
|
|
|
|
<mkdir dir="${deploy.home}"/>
|
|
|
|
<mkdir dir="${deploy.home}/WEB-INF"/>
|
|
|
|
<mkdir dir="${deploy.home}/WEB-INF/scripts"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Copy everything to the application directory that can be updated without a restart. -->
|
|
|
|
<target name="fastupdate" depends="mkbasedirs">
|
|
|
|
<copy todir="${deploy.home}"> <!-- this copies all the JSP files and stuff -->
|
2001-01-31 13:48:40 -07:00
|
|
|
<fileset dir="web"/>
|
|
|
|
</copy>
|
2002-01-06 19:05:37 -07:00
|
|
|
<copy todir="${deploy.home}/WEB-INF/scripts"> <!-- this copies all the scripts -->
|
|
|
|
<fileset dir="scripts"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Prepare directory for build (copy everything that requires a restart to take effect) -->
|
|
|
|
<target name="prepare" depends="mkbasedirs">
|
2001-01-31 13:48:40 -07:00
|
|
|
<copy todir="${deploy.home}/WEB-INF">
|
2002-01-06 19:05:37 -07:00
|
|
|
<fileset dir="etc">
|
|
|
|
<include name="*.xml"/>
|
|
|
|
<include name="*.css"/>
|
|
|
|
<include name="*.dict"/>
|
|
|
|
</fileset>
|
2001-01-31 13:48:40 -07:00
|
|
|
</copy>
|
|
|
|
<mkdir dir="${deploy.home}/WEB-INF/classes"/>
|
|
|
|
<mkdir dir="${deploy.home}/WEB-INF/lib"/>
|
|
|
|
<copy todir="${deploy.home}/WEB-INF/lib">
|
2002-01-06 19:05:37 -07:00
|
|
|
<fileset dir="lib">
|
|
|
|
<include name="*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<mkdir dir="${deploy.home}/WEB-INF/tlds"/>
|
|
|
|
<copy todir="${deploy.home}/WEB-INF/tlds">
|
|
|
|
<fileset dir="tlds">
|
|
|
|
<include name="*.tld"/>
|
|
|
|
</fileset>
|
2001-01-31 13:48:40 -07:00
|
|
|
</copy>
|
2002-01-06 19:05:37 -07:00
|
|
|
<mkdir dir="${deploy.home}/WEB-INF/temp"/>
|
2001-01-31 13:48:40 -07:00
|
|
|
<mkdir dir="${javadoc.home}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Wipe out the deployment directory -->
|
|
|
|
<target name="clean">
|
|
|
|
<delete dir="${deploy.home}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Compile all the Java source -->
|
2002-01-06 19:05:37 -07:00
|
|
|
<target name="compile" depends="prepare,fastupdate">
|
2001-10-22 16:11:58 -06:00
|
|
|
<javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on" optimize="off" deprecation="on">
|
|
|
|
<classpath>
|
|
|
|
<fileset dir="${deploy.home}/WEB-INF/lib">
|
|
|
|
<include name="**/*.jar"/>
|
|
|
|
</fileset>
|
|
|
|
<pathelement location="${deploy.home}/WEB-INF/classes"/>
|
|
|
|
</classpath>
|
|
|
|
</javac>
|
2001-01-31 13:48:40 -07:00
|
|
|
<copy todir="${deploy.home}/WEB-INF/classes">
|
|
|
|
<fileset dir="src" includes="**/*.properties"/>
|
|
|
|
</copy>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Create Javadocs -->
|
2002-01-06 19:05:37 -07:00
|
|
|
<target name="javadoc" depends="mkbasedirs,prepare">
|
2001-01-31 13:48:40 -07:00
|
|
|
<javadoc sourcepath="src" packagenames="*" destdir="${javadoc.home}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<!-- Build it all, man -->
|
2002-01-06 19:05:37 -07:00
|
|
|
<target name="all" depends="clean,mkbasedirs,prepare,fastupdate,compile,javadoc"/>
|
2001-01-31 13:48:40 -07:00
|
|
|
|
|
|
|
<!-- Build the distribution .WAR file and JAR up the source code -->
|
2002-01-06 19:05:37 -07:00
|
|
|
<target name="dist" depends="mkbasedirs,prepare,fastupdate,compile">
|
2001-01-31 13:48:40 -07:00
|
|
|
<jar jarfile="${dist.home}/${dist.src}" basedir="."/>
|
|
|
|
<jar jarfile="${dist.home}/${dist.war}" basedir="${deploy.home}"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|