Switched to the ANT build system from make.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@84 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
Executable
+24
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $Id: build.sh,v 1.1 2001/03/03 21:21:46 mdb Exp $
|
||||||
|
|
||||||
|
# complain if JAVA_HOME isn't set
|
||||||
|
if [ -z "$JAVA_HOME" ]; then
|
||||||
|
echo JAVA_HOME must be set to your JVM install directory.
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# complain if ANT_HOME isn't set
|
||||||
|
if [ -z "$ANT_HOME" ]; then
|
||||||
|
echo ANT_HOME must be set to your ANT install directory.
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# set up our classpath
|
||||||
|
CP=$ANT_HOME/lib/ant.jar
|
||||||
|
CP=$CP:$ANT_HOME/../lib/jaxp.jar
|
||||||
|
CP=$CP:$ANT_HOME/../lib/crimson.jar
|
||||||
|
CP=$CP:$JAVA_HOME/lib/tools.jar
|
||||||
|
|
||||||
|
# execute ANT to perform the requested build target
|
||||||
|
java -classpath $CP:$CLASSPATH org.apache.tools.ant.Main "$@"
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
<!-- build configuration -->
|
||||||
|
<project name="samskivert" default="compile" basedir=".">
|
||||||
|
|
||||||
|
<!-- configuration parameters -->
|
||||||
|
<property name="app.name" value="samskivert"/>
|
||||||
|
<property name="deploy.home" value="dist"/>
|
||||||
|
<property name="dist.home" value="${deploy.home}"/>
|
||||||
|
<property name="dist.jar" value="${app.name}.jar"/>
|
||||||
|
<property name="javadoc.home" value="${deploy.home}/javadoc"/>
|
||||||
|
<property name="build.compiler" value="jikes"/>
|
||||||
|
|
||||||
|
<!-- prepares the application directories -->
|
||||||
|
<target name="prepare">
|
||||||
|
<mkdir dir="${deploy.home}"/>
|
||||||
|
<mkdir dir="${deploy.home}/classes"/>
|
||||||
|
<mkdir dir="${javadoc.home}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- cleans out the installed application -->
|
||||||
|
<target name="clean">
|
||||||
|
<delete dir="${deploy.home}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- build the java class files -->
|
||||||
|
<target name="compile" depends="prepare">
|
||||||
|
<javac srcdir="src" destdir="${deploy.home}/classes"
|
||||||
|
debug="on" optimize="off" deprecation="off">
|
||||||
|
<classpath>
|
||||||
|
<pathelement location="${deploy.home}/classes"/>
|
||||||
|
<fileset dir="lib">
|
||||||
|
<include name="**/*.jar" />
|
||||||
|
</fileset>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- build the javadoc documentation -->
|
||||||
|
<target name="javadoc" depends="prepare">
|
||||||
|
<javadoc sourcepath="src" packagenames="*"
|
||||||
|
destdir="${javadoc.home}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<!-- the default target is to rebuild everything -->
|
||||||
|
<target name="all" depends="clean,prepare,compile,javadoc"/>
|
||||||
|
|
||||||
|
<!-- builds our distribution files (war and jar) -->
|
||||||
|
<target name="dist" depends="prepare,compile">
|
||||||
|
<jar jarfile="${dist.home}/${dist.jar}"
|
||||||
|
basedir="${deploy.home}/classes"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
</project>
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile.local,v 1.1 2001/02/16 03:28:39 mdb Exp $
|
|
||||||
#
|
|
||||||
# Defines stuff common to this entire code tree
|
|
||||||
|
|
||||||
# this tells the build system where to install shared libraries built from
|
|
||||||
# this code tree
|
|
||||||
LIBDIR = $(ROOT)/../../lib/$(ARCH)
|
|
||||||
|
|
||||||
# where we put our zip and jar files
|
|
||||||
ARCHIVEDIR = $(ROOT)/../../lib
|
|
||||||
|
|
||||||
LOCAL_CLASSPATH += \
|
|
||||||
$(shell ls $(ARCHIVEDIR)/*.jar) \
|
|
||||||
|
|
||||||
# $(shell ls $(ARCHIVEDIR)/*.zip) \
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.2 2001/03/02 01:22:07 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
Log.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.2 2001/02/13 00:25:14 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
JDBCUtil.java \
|
|
||||||
MySQLRepository.java \
|
|
||||||
Repository.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.1 2001/02/13 05:46:56 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
Cursor.java \
|
|
||||||
DataTransferError.java \
|
|
||||||
FieldDescriptor.java \
|
|
||||||
NoCurrentObjectError.java \
|
|
||||||
NoPrimaryKeyError.java \
|
|
||||||
SQLError.java \
|
|
||||||
Session.java \
|
|
||||||
SessionThread.java \
|
|
||||||
Table.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.2 2000/10/23 07:32:12 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
CDDB.java \
|
|
||||||
CDDBException.java \
|
|
||||||
CDDBProtocol.java \
|
|
||||||
CDDBTest.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.1 2001/03/02 01:21:06 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
RedirectException.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.2 2001/03/02 02:08:50 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
InvalidPasswordException.java \
|
|
||||||
InvalidUsernameException.java \
|
|
||||||
NoSuchUserException.java \
|
|
||||||
User.java \
|
|
||||||
UserExistsException.java \
|
|
||||||
UserManager.java \
|
|
||||||
UserRepository.java \
|
|
||||||
UserUtil.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.1 2000/12/07 05:41:07 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
DimenInfo.java \
|
|
||||||
GroupLayout.java \
|
|
||||||
GroupLayoutTest.java \
|
|
||||||
HGroupLayout.java \
|
|
||||||
VGroupLayout.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.1 2000/12/06 03:25:19 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
Task.java \
|
|
||||||
TaskMaster.java \
|
|
||||||
TaskObserver.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.8 2001/03/02 00:47:10 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
ConfigUtil.java \
|
|
||||||
Crypt.java \
|
|
||||||
DefaultLogProvider.java \
|
|
||||||
IntIntMap.java \
|
|
||||||
IntMap.java \
|
|
||||||
Interval.java \
|
|
||||||
IntervalManager.java \
|
|
||||||
Log.java \
|
|
||||||
LogProvider.java \
|
|
||||||
PropertiesUtil.java \
|
|
||||||
Queue.java \
|
|
||||||
StringUtil.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: Makefile,v 1.5 2001/03/02 01:22:07 mdb Exp $
|
|
||||||
|
|
||||||
ROOT = ../../..
|
|
||||||
|
|
||||||
SRCS = \
|
|
||||||
DataValidationException.java \
|
|
||||||
DispatcherServlet.java \
|
|
||||||
DummyLogic.java \
|
|
||||||
ExceptionMap.java \
|
|
||||||
FormUtil.java \
|
|
||||||
FriendlyException.java \
|
|
||||||
Logic.java \
|
|
||||||
|
|
||||||
include $(ROOT)/build/Makefile.java
|
|
||||||
Reference in New Issue
Block a user