This commit was manufactured by cvs2svn to create tag 'antville_1_0'.
This commit is contained in:
parent
ebdf361ce5
commit
55009478a8
205 changed files with 0 additions and 49016 deletions
93
build/README
93
build/README
|
@ -1,93 +0,0 @@
|
|||
This is the README file for the Helma build files as part of the Helma Object Publisher. It is included in the current distribution (version 1.2pre as of 8 November 2001) downloadable at <http://helma.org/download>.
|
||||
|
||||
|
||||
|
||||
The build directory consists of the following files:
|
||||
|
||||
ant.jar
|
||||
build.bat
|
||||
build.sh
|
||||
build.xml
|
||||
crimson.jar
|
||||
jaxp.jar
|
||||
README
|
||||
|
||||
|
||||
PREREQUISITES
|
||||
=============
|
||||
|
||||
The Helma build script is using a software called Ant. Ant is a build system that was developed for the Jakarta Tomcat project. For more information about Ant, see <http://jakarta.apache.org/ant/>.
|
||||
|
||||
To run Ant, you also need JDK 1.3 or higher <http://java.sun.com/j2se/>.
|
||||
|
||||
For checking out the source files from Helma's CVS you also need a local installation of a CVS command-line client. More information about CVS at <http://www.cvshome.org/>.
|
||||
|
||||
|
||||
STARTING BUILD
|
||||
==============
|
||||
|
||||
The build system is started by invoking the shell script appropriate to your platform, ie. build.sh for *nix (Linux, NetBSD etc.) and build.bat for Windows systems. You need to modify the script and set the JAVA_HOME to fit your system.
|
||||
|
||||
The generic syntax is
|
||||
|
||||
./build target
|
||||
|
||||
The parameter "target" specifies one of the following build targets.
|
||||
|
||||
|
||||
BUILD A SNAPSHOT
|
||||
================
|
||||
|
||||
To build a helma.jar with the most up-to-date version of helma yourself you need to run
|
||||
|
||||
./build checkout
|
||||
|
||||
and
|
||||
|
||||
./build snapshot
|
||||
|
||||
|
||||
BUILD TARGETS
|
||||
=============
|
||||
|
||||
checkout
|
||||
Fetches (or updates, resp.) the Helma source code in the src/-directory from the CVS. If you've still got the sourcecode that came with the distribution in there, you need to move that away first.
|
||||
|
||||
snapshot
|
||||
Runs snapshotcompile and stuffs the class files as .jar archive in the lib directory. The file is named helma-yyyymmdd.jar.
|
||||
|
||||
snapshotcompile
|
||||
Compiles the source files contained in the src/hop directory into the classes directory (which will be created if necessary). You can use the source files from your distribution or you can get the most recent version by checking out the "hop"-module from the cvs.
|
||||
|
||||
fullcheckout
|
||||
Fetches (or updates, resp.) everything that's needed to create a full Helma distribution (source files, build files, libs, demo-apps) from the CVS and copies them into the work/checkout/ directory (which will be created if necessary).
|
||||
|
||||
compile
|
||||
Compiles the source files contained in the work/checkout/hop/ directory into the work/classes/ directory (which will be created if necessary).
|
||||
|
||||
jar
|
||||
Stuffs the files in work/classes/ together and saves them as .jar archive in the work directory. The file is named helma-yyyymmdd.jar.
|
||||
|
||||
javadocs
|
||||
Creates the Java API documentation for the Helma classes. The resulting files are saved into the work/docs/api/ directory (which will be created if necessary).
|
||||
|
||||
helmadocs
|
||||
Gets the documentation from helma.org via http in a printable version. (still some way to go..)
|
||||
|
||||
package
|
||||
Builds all previous targets (checkout, compile, jar, javadoc) and saves the created files in the directory work/helma-1.x/ (with 1.x being the version number). All directories will be created if necessary.
|
||||
|
||||
package-zip
|
||||
Same as "package". Additionally, the files in the output directory will be compressed as .zip file.
|
||||
|
||||
package-tgz
|
||||
Same as "package". Additionall, the file in the output directory will be compressed as .tar.gz file.
|
||||
|
||||
package-all
|
||||
Builds all previous targets. The result is a complete and up-to-date (as in the CVS) installation of Helma, the API documentation, source and build files as well as compressed packages for *nix and Windows systems including all the files.
|
||||
|
||||
|
||||
--
|
||||
|
||||
This README was last updated on 26 April 2002. Questions? tobi@helma.org
|
||||
|
BIN
build/ant.jar
BIN
build/ant.jar
Binary file not shown.
|
@ -1,48 +0,0 @@
|
|||
@echo off
|
||||
|
||||
set TARGET=%1%
|
||||
REM set JAVA_HOME=c:\programme\jdk13
|
||||
|
||||
REM --------------------------------------------
|
||||
REM No need to edit anything past here
|
||||
REM --------------------------------------------
|
||||
|
||||
set BUILDFILE=build.xml
|
||||
if "%TARGET%" == "" goto setdist
|
||||
goto cont1
|
||||
|
||||
:cont1
|
||||
if not "%2%" == "" goto setapp
|
||||
goto final
|
||||
|
||||
:setdist
|
||||
set TARGET=usage
|
||||
goto cont1
|
||||
|
||||
:setapp
|
||||
set APPNAME=-Dapplication=%2%
|
||||
goto final
|
||||
|
||||
:final
|
||||
|
||||
if "%JAVA_HOME%" == "" goto javahomeerror
|
||||
|
||||
set CP=%CLASSPATH%;ant.jar;jaxp.jar;crimson.jar
|
||||
if exist %JAVA_HOME%\lib\tools.jar set CP=%CP%;%JAVA_HOME%\lib\tools.jar
|
||||
|
||||
echo Classpath: %CP%
|
||||
echo JAVA_HOME: %JAVA_HOME%
|
||||
|
||||
%JAVA_HOME%\bin\java.exe -classpath "%CP%" %APPNAME% 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
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# export JAVA_HOME=/usr/lib/j2sdk1.4.0
|
||||
|
||||
#--------------------------------------------
|
||||
# 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 -f ${JAVA_HOME}/lib/tools.jar ; then
|
||||
CLASSPATH=${CLASSPATH}:${JAVA_HOME}/lib/tools.jar
|
||||
fi
|
||||
|
||||
if test -n "${2}" ; then
|
||||
APPNAME=-Dapplication=${2}
|
||||
fi
|
||||
|
||||
CP=${CLASSPATH}:ant.jar:jaxp.jar:../lib/crimson.jar
|
||||
|
||||
echo "Classpath: ${CP}"
|
||||
echo "JAVA_HOME: ${JAVA_HOME}"
|
||||
|
||||
BUILDFILE=build.xml
|
||||
|
||||
${JAVA_HOME}/bin/java -classpath ${CP} ${APPNAME} org.apache.tools.ant.Main -buildfile ${BUILDFILE} ${1}
|
||||
|
402
build/build.xml
402
build/build.xml
|
@ -1,402 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
<project name="Helma" default="usage" basedir=".">
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Initializes some variables -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="init">
|
||||
<property name="Name" value="helma"/>
|
||||
<property name="year" value="1998-${year}"/>
|
||||
<property name="version" value="1.3.0-alpha"/>
|
||||
<property name="project" value="helma"/>
|
||||
<property name="build.compiler" value="classic"/>
|
||||
|
||||
<property name="cvs.root.apps" value=":pserver:anonymous@adele.helma.at:/opt/cvs/apps"/>
|
||||
<property name="cvs.root.helma" value=":pserver:anonymous@adele.helma.at:/opt/cvs/helma"/>
|
||||
|
||||
<property name="home.dir" value=".."/>
|
||||
<property name="build.dir" value="${home.dir}/build"/>
|
||||
<property name="build.src" value="${home.dir}/src"/>
|
||||
<property name="build.lib" value="${home.dir}/lib"/>
|
||||
<property name="build.classes" value="${home.dir}/classes"/>
|
||||
<property name="build.docs" value="${home.dir}/docs"/>
|
||||
<property name="build.javadocs" value="${home.dir}/docs/api"/>
|
||||
|
||||
<property name="build.work" value="${home.dir}/work"/>
|
||||
<property name="build.dist" value="${home.dir}/dist"/>
|
||||
|
||||
<property name="jar.name" value="${project}"/>
|
||||
<property name="package.name" value="${project}-${version}"/>
|
||||
<property name="antclick.name" value="antclick-1.0.1-pre1"/>
|
||||
|
||||
<property name="debug" value="on"/>
|
||||
<property name="optimize" value="on"/>
|
||||
<property name="deprecation" value="off"/>
|
||||
|
||||
<path id="build.class.path">
|
||||
<fileset dir="${home.dir}/lib">
|
||||
<exclude name="**/helma*.jar" />
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<tstamp/>
|
||||
|
||||
<filter token="year" value="${year}"/>
|
||||
<filter token="version" value="${version}"/>
|
||||
<filter token="date" value="${TODAY}"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Help on usage -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="help" depends="usage" />
|
||||
<target name="usage">
|
||||
<echo message=""/>
|
||||
<echo message=""/>
|
||||
<echo message="Helma build instructions"/>
|
||||
<echo message="-------------------------------------------------------------"/>
|
||||
<echo message=""/>
|
||||
<echo message=" available targets are:"/>
|
||||
<echo message=""/>
|
||||
<echo message=" compile --> compiles the source code to ./classes"/>
|
||||
<echo message=" jar --> generates the ./lib/helma-YYYYMMDD.jar file"/>
|
||||
<echo message=" javadocs --> generates the API docs"/>
|
||||
<echo message=" docs --> tries to retrieve the HTML documentation "/>
|
||||
<echo message=" (may need proxy settings in startscript)"/>
|
||||
<echo message=" package --> generates the distribution (zip and tar.gz)"/>
|
||||
<echo message=" antclick --> generates the distribution (zip and tar.gz)"/>
|
||||
<echo message=" with antville preconfigured"/>
|
||||
<echo message=" app [name] --> gets an application from the cvs and zips it"/>
|
||||
<echo message=""/>
|
||||
<echo message=" usage --> provides help on using the build tool (default)"/>
|
||||
<echo message=""/>
|
||||
<echo message=" See comments inside the build.xml file for more details."/>
|
||||
<echo message="-------------------------------------------------------------"/>
|
||||
<echo message=""/>
|
||||
<echo message=""/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Compiles the source directory -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="compile" depends="init">
|
||||
<mkdir dir="${build.classes}"/>
|
||||
<javac srcdir="${build.src}"
|
||||
destdir="${build.classes}"
|
||||
debug="${debug}"
|
||||
deprecation="${deprecation}"
|
||||
optimize="${optimize}">
|
||||
<classpath refid="build.class.path" />
|
||||
</javac>
|
||||
<rmic classname="helma.framework.core.RemoteApplication" base="${build.classes}"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Creates a helma.jar file (snapshot) in the lib-directory -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="jar" depends="compile">
|
||||
<jar jarfile="${build.lib}/${jar.name}-${DSTAMP}.jar"
|
||||
basedir="${build.classes}"
|
||||
excludes="**/package.html,**/main/launcher/**"/>
|
||||
<jar jarfile="${home.dir}/launcher.jar"
|
||||
basedir="${build.classes}"
|
||||
includes="**/main/launcher/**"
|
||||
manifest="${build.src}/helma/main/launcher/manifest.txt"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Creates the API documentation -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="javadocs" depends="init">
|
||||
<mkdir dir="${build.javadocs}"/>
|
||||
<javadoc packagenames="helma.*"
|
||||
sourcepath="${build.src}"
|
||||
destdir="${build.javadocs}"
|
||||
author="false"
|
||||
private="false"
|
||||
version="false"
|
||||
windowtitle="${Name} ${version} API"
|
||||
doctitle="${Name} ${version} API"
|
||||
bottom="Copyright © ${year} Helma.org. All Rights Reserved."
|
||||
classpathref="build.class.path"
|
||||
/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Get the documentation (currently can fail due to request time-out -->
|
||||
<!-- or missing support for proxies) -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="docs" depends="init">
|
||||
<get src="http://www.helma.org/docs/reference/print"
|
||||
dest="${build.docs}/reference.html"
|
||||
ignoreerrors="true"
|
||||
/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Creates the full helma distribution -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package" depends="init">
|
||||
<mkdir dir="${build.work}"/>
|
||||
|
||||
<!-- create the main part of helma -->
|
||||
<antcall target="package-raw">
|
||||
<param name="distribution" value="main" />
|
||||
</antcall>
|
||||
|
||||
<chmod perm="755">
|
||||
<fileset dir="${build.work}">
|
||||
<include name="hop.sh"/>
|
||||
</fileset>
|
||||
</chmod>
|
||||
|
||||
<!-- checkout the demo apps (and zip manage-app) -->
|
||||
<antcall target="package-apps" />
|
||||
|
||||
<!-- zip up the whole thing -->
|
||||
<antcall target="package-zip">
|
||||
<param name="filename" value="${package.name}"/>
|
||||
</antcall>
|
||||
<antcall target="package-tgz">
|
||||
<param name="filename" value="${package.name}"/>
|
||||
</antcall>
|
||||
|
||||
<!-- make the src distributions -->
|
||||
<antcall target="package-src-zip">
|
||||
<param name="filename" value="${package.name}"/>
|
||||
</antcall>
|
||||
<antcall target="package-src-tgz">
|
||||
<param name="filename" value="${package.name}"/>
|
||||
</antcall>
|
||||
|
||||
<!-- clean up -->
|
||||
<delete dir="${build.work}"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Compile Helma and prepare the skeleton in a temporary directory. -->
|
||||
<!-- Used by package and antclick. -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-raw" depends="init, jar">
|
||||
|
||||
<!-- copy the framework (apps.props, server.props, hop/db, hop/static) -->
|
||||
<copy todir="${build.work}">
|
||||
<fileset dir="${build.dir}/${distribution}" excludes="**/CVS**"/>
|
||||
</copy>
|
||||
|
||||
<!-- copy the launcher jar file -->
|
||||
<copy file="${home.dir}/launcher.jar" todir="${build.work}/"/>
|
||||
|
||||
<!-- copy README.txt -->
|
||||
<copy file="${home.dir}/README.txt" todir="${build.work}/"/>
|
||||
|
||||
<!-- copy the whole docs-directory -->
|
||||
<!-- copy todir="${build.work}/docs">
|
||||
<fileset dir="${build.docs}"/>
|
||||
</copy -->
|
||||
|
||||
<!-- copy all libraries except helma-YYYYMMDD.jar -->
|
||||
<copy todir="${build.work}/lib">
|
||||
<fileset dir="${home.dir}/lib">
|
||||
<exclude name="**/helma*.jar" />
|
||||
<include name="**/*.jar" />
|
||||
</fileset>
|
||||
</copy>
|
||||
|
||||
<!-- copy the whole licenses-directory -->
|
||||
<copy todir="${build.work}/licenses">
|
||||
<fileset dir="${home.dir}/licenses" excludes="**/CVS**"/>
|
||||
</copy>
|
||||
|
||||
<!-- rename the current jar-file -->
|
||||
<copy file="${build.lib}/${jar.name}-${DSTAMP}.jar" tofile="${build.work}/lib/helma.jar"/>
|
||||
|
||||
<!-- zip the sourcecode -->
|
||||
<!-- mkdir dir="${build.work}/src"/>
|
||||
<tar tarfile="${build.work}/src/helma-src.tar" basedir="${build.src}/">
|
||||
<tarfileset dir="${build.src}">
|
||||
<include name="${build.src}/**"/>
|
||||
</tarfileset>
|
||||
</tar>
|
||||
<gzip zipfile="${build.work}/src/helma-src.tar.gz" src="${build.work}/src/helma-src.tar"/>
|
||||
<delete file="${build.work}/src/helma-src.tar"/ -->
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Checkout demo apps, put them in work directory and zip manage app -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-apps" depends="init">
|
||||
|
||||
<mkdir dir="${build.work}/apps" />
|
||||
|
||||
<!-- get demo apps -->
|
||||
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="base" dest="${build.work}/apps" />
|
||||
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="bloggerapi" dest="${build.work}/apps" />
|
||||
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="himp" dest="${build.work}/apps" />
|
||||
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="gong" dest="${build.work}/apps" />
|
||||
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="lillebror" dest="${build.work}/apps" />
|
||||
|
||||
<antcall target="package-manage" />
|
||||
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Checkout and zip manage application -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-manage" depends="init">
|
||||
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="manage" dest="${build.work}" />
|
||||
<mkdir dir="${build.work}/apps/manage"/>
|
||||
<zip zipfile="${build.work}/apps/manage/manage.zip" basedir="${build.work}/manage/" includes="**" excludes="**/properties,readme/**" />
|
||||
<copy todir="${build.work}/apps/manage">
|
||||
<fileset dir="${build.work}/manage" includes="app.properties,class.properties,readme.txt"/>
|
||||
</copy>
|
||||
<delete dir="${build.work}/manage" />
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Packages the work directory with TAR-GZIP -->
|
||||
<!-- needs parameter ${filename} for final dist-file -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-tgz" depends="init">
|
||||
<mkdir dir="${build.dist}" />
|
||||
<fixcrlf srcdir="${build.work}" eol="lf" eof="remove" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin" />
|
||||
<tar tarfile="${build.dist}/${filename}.tar" basedir="${build.work}" excludes="**">
|
||||
<tarfileset prefix="${filename}" dir="${build.work}" mode="755">
|
||||
<include name="hop.sh"/>
|
||||
</tarfileset>
|
||||
<tarfileset prefix="${filename}" dir="${build.work}">
|
||||
<include name="**"/>
|
||||
<exclude name="hop.sh"/>
|
||||
</tarfileset>
|
||||
</tar>
|
||||
<gzip zipfile="${build.dist}/${filename}.tar.gz" src="${build.dist}/${filename}.tar"/>
|
||||
<delete file="${build.dist}/${filename}.tar"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Packages the work directory with ZIP -->
|
||||
<!-- needs parameter ${filename} for final dist-file -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-zip" depends="init">
|
||||
<mkdir dir="${build.dist}" />
|
||||
<fixcrlf srcdir="${build.work}" eol="crlf" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin, **/*.xml" />
|
||||
<zip zipfile="${build.dist}/${filename}.zip">
|
||||
<zipfileset dir="${build.work}" prefix="${filename}" includes="**" />
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Packages Helma src and build directories with TAR-GZIP -->
|
||||
<!-- needs parameter ${filename} for final dist-file -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-src-tgz" depends="init">
|
||||
<mkdir dir="${build.dist}" />
|
||||
<tar tarfile="${build.dist}/${filename}-src.tar">
|
||||
<tarfileset prefix="${filename}" dir="${home.dir}"
|
||||
includes="src/**,build/**,license.txt,licenses/**"/>
|
||||
</tar>
|
||||
<gzip zipfile="${build.dist}/${filename}-src.tar.gz" src="${build.dist}/${filename}-src.tar"/>
|
||||
<delete file="${build.dist}/${filename}-src.tar"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Packages Helma src and build directories with ZIP -->
|
||||
<!-- needs parameter ${filename} for final dist-file -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="package-src-zip" depends="init">
|
||||
<mkdir dir="${build.dist}" />
|
||||
<zip zipfile="${build.dist}/${filename}-src.zip">
|
||||
<zipfileset dir="${home.dir}" prefix="${filename}"
|
||||
includes="src/**,build/**,license.txt,licenses/**" />
|
||||
</zip>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Make Antclick package (helma plus Antville and manage apps) -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="antclick" depends="init">
|
||||
<mkdir dir="${build.work}"/>
|
||||
|
||||
<!-- create the main part of helma -->
|
||||
<antcall target="package-raw">
|
||||
<param name="distribution" value="antclick" />
|
||||
</antcall>
|
||||
|
||||
<!-- get antville -->
|
||||
<mkdir dir="${build.work}/apps" />
|
||||
<!-- to retrieve special versions of antville insert additional attributes:
|
||||
tag="TAGNAME", date="1972-09-24" or date="1972-09-24 20:05" -->
|
||||
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="antville" dest="${build.work}/apps" />
|
||||
|
||||
<!-- unzip images -->
|
||||
<mkdir dir="${build.work}/static/images"/>
|
||||
<unzip src="${build.work}/apps/antville/images.zip" dest="${build.work}/static/images">
|
||||
<patternset>
|
||||
<include name="**"/>
|
||||
</patternset>
|
||||
</unzip>
|
||||
|
||||
<!-- delete antville's mysql-scripts, image-zip etc -->
|
||||
<delete>
|
||||
<fileset dir="${build.work}/apps/antville" includes="images.zip,*.sql" />
|
||||
</delete>
|
||||
|
||||
<!-- get and zip manage-app -->
|
||||
<antcall target="package-manage" />
|
||||
|
||||
<!-- zip up the whole thing -->
|
||||
<antcall target="package-zip">
|
||||
<param name="filename" value="${antclick.name}"/>
|
||||
</antcall>
|
||||
<antcall target="package-tgz">
|
||||
<param name="filename" value="${antclick.name}"/>
|
||||
</antcall>
|
||||
|
||||
<!-- clean up -->
|
||||
<delete dir="${build.work}"/>
|
||||
</target>
|
||||
|
||||
|
||||
<!-- =================================================================== -->
|
||||
<!-- Gets an application from the cvs and zips/targzs it -->
|
||||
<!-- =================================================================== -->
|
||||
<target name="app" depends="init">
|
||||
<mkdir dir="${build.dist}" />
|
||||
<mkdir dir="${build.work}" />
|
||||
|
||||
<!-- to retrieve special versions of an application insert
|
||||
additional attributes: tag="TAGNAME" or date="1972-09-24 20:05" -->
|
||||
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="${application}" dest="${build.work}" />
|
||||
|
||||
<fixcrlf srcdir="${build.work}" eol="crlf" eof="add" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin, **/*.xml" />
|
||||
<zip zipfile="${build.dist}/${application}-${DSTAMP}.zip" basedir="${build.work}" includes="**"/>
|
||||
|
||||
<fixcrlf srcdir="${build.work}" eol="lf" eof="remove" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin" />
|
||||
<tar tarfile="${build.dist}/${application}-${DSTAMP}.tar" basedir="${build.work}">
|
||||
<tarfileset dir="${build.work}">
|
||||
<include name="${build.work}/**"/>
|
||||
</tarfileset>
|
||||
</tar>
|
||||
<gzip zipfile="${build.dist}/${application}-${DSTAMP}.tar.gz" src="${build.dist}/${application}-${DSTAMP}.tar" />
|
||||
|
||||
<delete file="${build.dist}/${application}-${DSTAMP}.tar" />
|
||||
<delete dir="${build.work}" />
|
||||
</target>
|
||||
|
||||
</project>
|
Binary file not shown.
BIN
build/jaxp.jar
BIN
build/jaxp.jar
Binary file not shown.
|
@ -1,13 +0,0 @@
|
|||
# List of applications to start.
|
||||
|
||||
base
|
||||
base.mountpoint = /
|
||||
base.static = static
|
||||
base.staticMountpoint = /static
|
||||
|
||||
manage
|
||||
|
||||
gong
|
||||
himp
|
||||
bloggerapi
|
||||
lillebror
|
|
@ -1,16 +0,0 @@
|
|||
# This is where you specify relational data sources to
|
||||
# map Helma types to relational databases.
|
||||
#
|
||||
# If you want to define a data source just for one
|
||||
# application, simply copy the db.properties file to
|
||||
# the application directory.
|
||||
#
|
||||
# The actual mapping of types is done in the
|
||||
# type.properties file in the prototype directories.
|
||||
#
|
||||
|
||||
# Properties of JDBC data sources
|
||||
myDataSource.url = jdbc:mysql://db.domain.com/space
|
||||
myDataSource.driver = org.gjt.mm.mysql.Driver
|
||||
myDataSource.user = username
|
||||
myDataSource.password = xyz
|
|
@ -1,79 +0,0 @@
|
|||
@echo off
|
||||
rem Batch file for Starting Helma with a JDK-like virtual machine.
|
||||
|
||||
rem To add jar files to the classpath, simply place them into the
|
||||
rem lib/ext directory of this Helma installation.
|
||||
|
||||
:: Initialize variables
|
||||
:: (don't touch this section)
|
||||
set JAVA_HOME=
|
||||
set HOP_HOME=
|
||||
set HTTP_PORT=
|
||||
set XMLRPC_PORT=
|
||||
set AJP13_PORT=
|
||||
set RMI_PORT=
|
||||
set OPTIONS=
|
||||
|
||||
:: Set TCP ports for Helma servers
|
||||
:: (comment/uncomment to de/activate)
|
||||
set HTTP_PORT=8080
|
||||
rem set XMLRPC_PORT=8081
|
||||
rem set AJP13_PORT=8009
|
||||
rem set RMI_PORT=5050
|
||||
|
||||
:: Uncomment to set HOP_HOME
|
||||
rem set HOP_HOME=c:\program files\helma
|
||||
|
||||
:: Uncomment to set JAVA_HOME variable
|
||||
rem set JAVA_HOME=c:\program files\java
|
||||
|
||||
:: Uncomment to pass options to the Java virtual machine
|
||||
rem set JAVA_OPTIONS=-server -Xmx128m
|
||||
|
||||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
:::::: No user configuration needed below this line :::::::
|
||||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
||||
|
||||
:: Setting the script path
|
||||
set INSTALL_DIR=%~d0%~p0
|
||||
|
||||
:: Using JAVA_HOME variable if defined. Otherwise,
|
||||
:: Java executable must be contained in PATH variable
|
||||
if "%JAVA_HOME%"=="" goto default
|
||||
set JAVACMD=%JAVA_HOME%\bin\java
|
||||
goto end
|
||||
:default
|
||||
set JAVACMD=java
|
||||
:end
|
||||
|
||||
:: Setting HOP_HOME to script path if undefined
|
||||
if "%HOP_HOME%"=="" (
|
||||
set HOP_HOME=%INSTALL_DIR%
|
||||
)
|
||||
cd %HOP_HOME%
|
||||
|
||||
|
||||
:: Setting Helma server options
|
||||
if not "%HTTP_PORT%"=="" (
|
||||
echo Starting HTTP server on port %HTTP_PORT%
|
||||
set OPTIONS=%OPTIONS% -w %HTTP_PORT%
|
||||
)
|
||||
if not "%XMLRPC_PORT%"=="" (
|
||||
echo Starting XML-RPC server on port %XMLRPC_PORT%
|
||||
set OPTIONS=%OPTIONS% -x %XMLRPC_PORT%
|
||||
)
|
||||
if not "%AJP13_PORT%"=="" (
|
||||
echo Starting AJP13 listener on port %AJP13_PORT%
|
||||
set OPTIONS=%OPTIONS% -jk %AJP13_PORT%
|
||||
)
|
||||
if not "%RMI_PORT%"=="" (
|
||||
echo Starting RMI server on port %RMI_PORT%
|
||||
set OPTIONS=%OPTIONS% -p %RMI_PORT%
|
||||
)
|
||||
if not "%HOP_HOME%"=="" (
|
||||
echo Serving applications from %HOP_HOME%
|
||||
set OPTIONS=%OPTIONS% -h "%HOP_HOME%
|
||||
)
|
||||
|
||||
:: Invoking the Java virtual machine
|
||||
%JAVACMD% %JAVA_OPTIONS% -jar "%INSTALL_DIR%\launcher.jar" %OPTIONS%
|
|
@ -1,80 +0,0 @@
|
|||
#!/bin/sh
|
||||
# Shell script for starting Helma with a JDK-like virtual machine.
|
||||
|
||||
# To add JAR files to the classpath, simply place them into the
|
||||
# lib/ext directory.
|
||||
|
||||
# uncomment to set JAVA_HOME variable
|
||||
# JAVA_HOME=/usr/lib/java
|
||||
|
||||
# uncomment to set HOP_HOME, otherwise we get it from the script path
|
||||
# HOP_HOME=/usr/local/helma
|
||||
|
||||
# options to pass to the Java virtual machine
|
||||
# JAVA_OPTIONS="-server -Xmx128m"
|
||||
|
||||
# Set TCP ports for Helma servers
|
||||
# (comment/uncomment to de/activate)
|
||||
HTTP_PORT=8080
|
||||
# XMLRPC_PORT=8081
|
||||
# AJP13_PORT=8009
|
||||
# RMI_PORT=5050
|
||||
|
||||
###########################################################
|
||||
###### No user configuration needed below this line #######
|
||||
###########################################################
|
||||
|
||||
# if JAVA_HOME variable is set, use it. Otherwise, Java executable
|
||||
# must be contained in PATH variable.
|
||||
if [ "$JAVA_HOME" ]; then
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
else
|
||||
JAVACMD=java
|
||||
fi
|
||||
|
||||
# Check if java command is executable
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
echo "Error: JAVA_HOME is not defined correctly."
|
||||
echo " We cannot execute $JAVACMD"
|
||||
exit
|
||||
fi
|
||||
|
||||
# Get the Helma installation directory
|
||||
INSTALL_DIR="${0%/*}"
|
||||
cd $INSTALL_DIR
|
||||
INSTALL_DIR=$PWD
|
||||
|
||||
# get HOP_HOME variable if it isn't set
|
||||
if [ -z "$HOP_HOME" ]; then
|
||||
# try to get HOP_HOME from script file and pwd
|
||||
# strip everyting behind last slash
|
||||
HOP_HOME="${0%/*}"
|
||||
cd $HOP_HOME
|
||||
HOP_HOME=$PWD
|
||||
else
|
||||
cd $HOP_HOME
|
||||
fi
|
||||
echo "Starting Helma in directory $HOP_HOME"
|
||||
|
||||
if [ "$HTTP_PORT" ]; then
|
||||
SWITCHES="$SWITCHES -w $HTTP_PORT"
|
||||
echo Starting HTTP server on port $HTTP_PORT
|
||||
fi
|
||||
if [ "$XMLRPC_PORT" ]; then
|
||||
SWITCHES="$SWITCHES -x $XMLRPC_PORT"
|
||||
echo Starting XML-RPC server on port $XMLRPC_PORT
|
||||
fi
|
||||
if [ "$AJP13_PORT" ]; then
|
||||
SWITCHES="$SWITCHES -jk $AJP13_PORT"
|
||||
echo Starting AJP13 listener on port $AJP13_PORT
|
||||
fi
|
||||
if [ "$RMI_PORT" ]; then
|
||||
SWITCHES="$SWITCHES -p $RMI_PORT"
|
||||
echo Starting RMI server on port $RMI_PORT
|
||||
fi
|
||||
if [ "$HOP_HOME" ]; then
|
||||
SWITCHES="$SWITCHES -h $HOP_HOME"
|
||||
fi
|
||||
|
||||
# Invoke the Java VM
|
||||
$JAVACMD $JAVA_OPTIONS -jar "$INSTALL_DIR/launcher.jar" $SWITCHES
|
|
@ -1,49 +0,0 @@
|
|||
Copyright (c) 1999-2002 Helma Project. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in
|
||||
the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
|
||||
3. Products derived from this software may not be called "Helma"
|
||||
or "Hop", nor may "Helma" or "Hop" appear in their name, without
|
||||
prior written permission of the Helma Project Group. For written
|
||||
permission, please contact helma@helma.org.
|
||||
|
||||
|
||||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
|
||||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE HELMA PROJECT OR ITS
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
This product contains the FESI EcmaScript interpreter written by
|
||||
Jean-Marc Lugrin (http://home.worldcom.ch/jmlugrin/fesi/). FESI is
|
||||
released under the GNU Lesser General Public License (see licenses/lesser.txt).
|
||||
|
||||
This product contains software from the Acme package written by Jef
|
||||
Poskanzer. Please see the licensing terms in the Acme source code and check out
|
||||
Jef's site at http://www.acme.com/.
|
||||
|
||||
This product includes software developed by the Apache Software Foundation
|
||||
released under the Apache Software License (licenses/apache.txt).
|
||||
|
||||
This product includes software developed by the JDOM Project
|
||||
(http://www.jdom.org/). Please see the licensing terms in licenses/jdom.txt
|
||||
|
||||
This product includes software developed by the Word Wide Web Consortium
|
||||
(http://www.w3c.org/). Please see the licensing terms in licenses/w3c.html.
|
|
@ -1,27 +0,0 @@
|
|||
# The SMTP server to use for sending mails. Set and
|
||||
# uncomment this line before trying to send mails from
|
||||
# Helma applications.
|
||||
#
|
||||
# smtp=mail.yourdomain.com
|
||||
|
||||
|
||||
# Some examples for server-wide locale settings
|
||||
# (please refer to http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html
|
||||
# for country codes, resp. http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt
|
||||
# for language codes).
|
||||
#
|
||||
# country = AT
|
||||
# language = de
|
||||
#
|
||||
# country = UK
|
||||
# language = en
|
||||
#
|
||||
# country = FR
|
||||
# language = fr
|
||||
#
|
||||
# country = CZ
|
||||
# language = cs
|
||||
|
||||
# list ip addresses for admin-application here:
|
||||
allowAdmin=127.0.0.1, 192.168.0.1
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 721 B |
Binary file not shown.
Before Width: | Height: | Size: 466 B |
Binary file not shown.
Before Width: | Height: | Size: 134 KiB |
|
@ -1,4 +0,0 @@
|
|||
|
||||
This file should appear at http://<host>:<port>/static/test.txt
|
||||
if you use the embedded Web server (-w option on commandline).
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue