Eliminate build.sh because we use the debian ant package to compile now.
Modified build.xml to include jar files from the shared java directory provided by Debian. git-svn-id: https://samskivert.googlecode.com/svn/trunk@85 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,24 +0,0 @@
|
|||||||
#!/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 "$@"
|
|
||||||
@@ -6,8 +6,9 @@
|
|||||||
<property name="deploy.home" value="dist"/>
|
<property name="deploy.home" value="dist"/>
|
||||||
<property name="dist.home" value="${deploy.home}"/>
|
<property name="dist.home" value="${deploy.home}"/>
|
||||||
<property name="dist.jar" value="${app.name}.jar"/>
|
<property name="dist.jar" value="${app.name}.jar"/>
|
||||||
<property name="javadoc.home" value="${deploy.home}/javadoc"/>
|
<property name="javadoc.home" value="${deploy.home}/docs"/>
|
||||||
<property name="build.compiler" value="jikes"/>
|
<property name="build.compiler" value="jikes"/>
|
||||||
|
<property name="java.libraries" value="/usr/share/java"/>
|
||||||
|
|
||||||
<!-- prepares the application directories -->
|
<!-- prepares the application directories -->
|
||||||
<target name="prepare">
|
<target name="prepare">
|
||||||
@@ -23,20 +24,21 @@
|
|||||||
|
|
||||||
<!-- build the java class files -->
|
<!-- build the java class files -->
|
||||||
<target name="compile" depends="prepare">
|
<target name="compile" depends="prepare">
|
||||||
<javac srcdir="src" destdir="${deploy.home}/classes"
|
<javac srcdir="src/java" destdir="${deploy.home}/classes"
|
||||||
debug="on" optimize="off" deprecation="off">
|
debug="on" optimize="off" deprecation="off">
|
||||||
<classpath>
|
<classpath>
|
||||||
|
<fileset dir="${java.libraries}" includes="**/*.jar"/>
|
||||||
|
<fileset dir="lib" includes="**/*.jar"/>
|
||||||
<pathelement location="${deploy.home}/classes"/>
|
<pathelement location="${deploy.home}/classes"/>
|
||||||
<fileset dir="lib">
|
|
||||||
<include name="**/*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</classpath>
|
</classpath>
|
||||||
</javac>
|
</javac>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<!-- build the javadoc documentation -->
|
<!-- build the javadoc documentation -->
|
||||||
<target name="javadoc" depends="prepare">
|
<target name="javadoc" depends="prepare">
|
||||||
<javadoc sourcepath="src" packagenames="*"
|
<javadoc sourcepath="src/java"
|
||||||
|
packagenames="com.samskivert.*"
|
||||||
|
classpath="${deploy.home}/classes"
|
||||||
destdir="${javadoc.home}"/>
|
destdir="${javadoc.home}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user