moved build files to own top level directory
This commit is contained in:
parent
1bdff708b2
commit
1b98b7379f
19 changed files with 214 additions and 0 deletions
3
build/README
Normal file
3
build/README
Normal file
|
@ -0,0 +1,3 @@
|
|||
|
||||
Ant is a build system that was developed for the Jakarta Tomcat project.
|
||||
For more information about Ant, see <http://jakarta.apache.org/ant/>.
|
BIN
build/ant.jar
Normal file
BIN
build/ant.jar
Normal file
Binary file not shown.
47
build/build.bat
Normal file
47
build/build.bat
Normal file
|
@ -0,0 +1,47 @@
|
|||
@echo off
|
||||
|
||||
|
||||
REM --------------------------------------------
|
||||
REM Defualt == jar
|
||||
REM "core" target builds core classes
|
||||
REM "clean" target removes bin directory
|
||||
REM "jar" target builds core + jar
|
||||
REM "javadoc" target builds the javadoc
|
||||
REM "package" target builds core + jar + javadoc + distribution
|
||||
REM --------------------------------------------
|
||||
set TARGET=%1%
|
||||
|
||||
|
||||
REM --------------------------------------------
|
||||
REM No need to edit anything past here
|
||||
REM --------------------------------------------
|
||||
set BUILDFILE=build.xml
|
||||
if "%TARGET%" == "" goto setdist
|
||||
goto final
|
||||
|
||||
:setdist
|
||||
set TARGET=jar
|
||||
goto final
|
||||
|
||||
:final
|
||||
|
||||
if "%JAVA_HOME%" == "" goto javahomeerror
|
||||
|
||||
if exist %JAVA_HOME%\lib\tools.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar
|
||||
set CP=%CLASSPATH%;ant.jar;xml.jar
|
||||
|
||||
echo Classpath: %CP%
|
||||
echo JAVA_HOME: %JAVA_HOME%
|
||||
|
||||
%JAVA_HOME%\bin\java.exe -classpath "%CP%" org.apache.tools.ant.Main -buildfile %BUILDFILE% %TARGET%
|
||||
|
||||
goto end
|
||||
|
||||
|
||||
REM -----------ERROR-------------
|
||||
:javahomeerror
|
||||
echo "ERROR: JAVA_HOME not found in your environment."
|
||||
echo "Please, set the JAVA_HOME variable in your environment to match the"
|
||||
echo "location of the Java Virtual Machine you want to use."
|
||||
|
||||
:end
|
40
build/build.sh
Executable file
40
build/build.sh
Executable file
|
@ -0,0 +1,40 @@
|
|||
#!/bin/sh
|
||||
|
||||
# --------------------------------------------
|
||||
# Defualt == jar
|
||||
# "core" target builds core classes
|
||||
# "clean" target removes bin directory
|
||||
# "jar" target builds core + jar
|
||||
# "javadoc" target builds the javadoc
|
||||
# "package" target builds core + jar + javadoc + distribution
|
||||
# --------------------------------------------
|
||||
TARGET=${1}
|
||||
|
||||
#--------------------------------------------
|
||||
# No need to edit anything past here
|
||||
#--------------------------------------------
|
||||
if test -z "${JAVA_HOME}" ; then
|
||||
echo "ERROR: JAVA_HOME not found in your environment."
|
||||
echo "Please, set the JAVA_HOME variable in your environment to match the"
|
||||
echo "location of the Java Virtual Machine you want to use."
|
||||
exit
|
||||
fi
|
||||
|
||||
if test -z "${TARGET}" ; then
|
||||
TARGET=jar
|
||||
fi
|
||||
|
||||
if test -f ${JAVA_HOME}/lib/tools.jar ; then
|
||||
CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar
|
||||
fi
|
||||
|
||||
echo "Now building ${TARGET}..."
|
||||
|
||||
CP=${CLASSPATH}:ant.jar:jaxp.jar:parser.jar
|
||||
|
||||
echo "Classpath: ${CP}"
|
||||
echo "JAVA_HOME: ${JAVA_HOME}"
|
||||
|
||||
BUILDFILE=build.xml
|
||||
|
||||
${JAVA_HOME}/bin/java -classpath ${CP} org.apache.tools.ant.Main -buildfile ${BUILDFILE} ${TARGET}
|
124
build/build.xml
Normal file
124
build/build.xml
Normal file
|
@ -0,0 +1,124 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<!-- ======================================================================= -->
|
||||
<!-- Hop build file -->
|
||||
<!-- ======================================================================= -->
|
||||
<project name="Hop" default="main" basedir=".">
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Initializes some variables -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="init">
|
||||
<property name="Name" value="Hop"/>
|
||||
<property name="year" value="1998-2001"/>
|
||||
<property name="version" value="1.0.beta1"/>
|
||||
<property name="project" value="hop"/>
|
||||
<property name="build.compiler" value="classic"/>
|
||||
<property name="build.dir" value="../bin"/>
|
||||
<property name="build.src" value="${build.dir}/src"/>
|
||||
<property name="build.dest" value="${build.dir}/classes"/>
|
||||
<property name="src.java.dir" value="../"/>
|
||||
<property name="javadoc.destdir" value="../docs/apidocs"/>
|
||||
<property name="final.name" value="${project}-${version}"/>
|
||||
<property name="final.dir" value="../${final.name}/"/>
|
||||
<property name="debug" value="on"/>
|
||||
<property name="optimize" value="on"/>
|
||||
<property name="deprecation" value="off"/>
|
||||
|
||||
<filter token="year" value="${year}"/>
|
||||
<filter token="version" value="${version}"/>
|
||||
<filter token="date" value="${TODAY}"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Copies the source code to the build directory and does filtering -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="prepare" depends="init">
|
||||
<mkdir dir="${build.dir}"/>
|
||||
<mkdir dir="${build.dest}"/>
|
||||
<mkdir dir="${build.src}"/>
|
||||
|
||||
<copy todir="${build.src}">
|
||||
<fileset dir="${src.java.dir}"
|
||||
includes="helma/**/*.java,FESI/**/*.java,Acme/**/*.java"/>
|
||||
</copy>
|
||||
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Compiles the source directory -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="compile" depends="prepare">
|
||||
<javac srcdir="${build.src}"
|
||||
destdir="${build.dest}"
|
||||
debug="${debug}"
|
||||
deprecation="${deprecation}"
|
||||
optimize="${optimize}">
|
||||
<classpath>
|
||||
<fileset dir="../lib">
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
<pathelement path="${classpath}" />
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Compiles the source directory and creates a .jar file -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="jar" depends="compile">
|
||||
<jar jarfile="${build.dir}/${final.name}.jar"
|
||||
basedir="${build.dest}"
|
||||
excludes="**/package.html"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Creates the API documentation -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="javadocs" depends="prepare">
|
||||
<mkdir dir="${javadoc.destdir}"/>
|
||||
<javadoc packagenames="helma.*"
|
||||
sourcepath="${build.src}"
|
||||
destdir="${javadoc.destdir}"
|
||||
author="false"
|
||||
private="false"
|
||||
version="false"
|
||||
windowtitle="${Name} ${version} API"
|
||||
doctitle="${Name} ${version} API"
|
||||
bottom="Copyright © 1998-2001 Helma.org. All Rights Reserved."
|
||||
/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Package -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package" depends="jar,javadocs">
|
||||
<mkdir dir="${final.dir}"/>
|
||||
<copydir src="${build.dir}/src/" dest="${final.dir}/src/"/>
|
||||
<copydir src="../docs" dest="${final.dir}/docs"/>
|
||||
<copydir src="../lib" dest="${final.dir}/lib"/>
|
||||
<copydir src="../build" dest="${final.dir}/build"/>
|
||||
<copyfile src="${build.dir}/${final.name}.jar" dest="${final.dir}/${final.name}.jar"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Packages the distribution with ZIP -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-zip" depends="package">
|
||||
<zip zipfile="../${Name}-${version}.zip" basedir="../" includes="**/${final.name}/**"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Packages the distribution with TAR-GZIP -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-tgz" depends="package">
|
||||
<tar tarfile="../${Name}-${version}.tar" basedir="../" includes="**/${final.name}/**"/>
|
||||
<gzip zipfile="../${Name}-${version}.tar.gz" src="../${Name}-${version}.tar"/>
|
||||
</target>
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Packages the distribution with ZIP and TAG-GZIP -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-all" depends="package-zip, package-tgz">
|
||||
</target>
|
||||
</project>
|
BIN
build/jaxp.jar
Normal file
BIN
build/jaxp.jar
Normal file
Binary file not shown.
BIN
build/parser.jar
Normal file
BIN
build/parser.jar
Normal file
Binary file not shown.
BIN
lib/activation.jar
Normal file
BIN
lib/activation.jar
Normal file
Binary file not shown.
BIN
lib/berkeley.jar
Normal file
BIN
lib/berkeley.jar
Normal file
Binary file not shown.
BIN
lib/jdom.jar
Normal file
BIN
lib/jdom.jar
Normal file
Binary file not shown.
BIN
lib/jimi.jar
Normal file
BIN
lib/jimi.jar
Normal file
Binary file not shown.
BIN
lib/jsdk.jar
Normal file
BIN
lib/jsdk.jar
Normal file
Binary file not shown.
BIN
lib/mail.jar
Normal file
BIN
lib/mail.jar
Normal file
Binary file not shown.
BIN
lib/mysql.jar
Normal file
BIN
lib/mysql.jar
Normal file
Binary file not shown.
BIN
lib/netcomponents.jar
Normal file
BIN
lib/netcomponents.jar
Normal file
Binary file not shown.
BIN
lib/openxml.jar
Normal file
BIN
lib/openxml.jar
Normal file
Binary file not shown.
BIN
lib/regexp.jar
Normal file
BIN
lib/regexp.jar
Normal file
Binary file not shown.
BIN
lib/sax.jar
Normal file
BIN
lib/sax.jar
Normal file
Binary file not shown.
BIN
lib/village.jar
Normal file
BIN
lib/village.jar
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue