builds a working snapshot

This commit is contained in:
hns 2001-02-09 19:01:03 +00:00
parent 9f8f477bf3
commit 523c05a3dc

View file

@ -14,17 +14,20 @@
<property name="version" value="1.0.beta1"/> <property name="version" value="1.0.beta1"/>
<property name="project" value="hop"/> <property name="project" value="hop"/>
<property name="build.compiler" value="classic"/> <property name="build.compiler" value="classic"/>
<property name="build.dir" value="../bin"/> <property name="build.dir" value="../work"/>
<property name="build.src" value="${build.dir}/src"/> <property name="build.src" value="${build.dir}/src"/>
<property name="build.dest" value="${build.dir}/classes"/> <property name="build.dest" value="${build.dir}/classes"/>
<property name="src.java.dir" value="../"/> <property name="build.checkout" value="${build.dir}/checkout"/>
<property name="javadoc.destdir" value="../docs/apidocs"/> <property name="javadoc.destdir" value="../docs/apidocs"/>
<property name="jar.name" value="helma"/>
<property name="final.name" value="${project}-${version}"/> <property name="final.name" value="${project}-${version}"/>
<property name="final.dir" value="../${final.name}/"/> <property name="final.dir" value="../${final.name}/"/>
<property name="debug" value="on"/> <property name="debug" value="on"/>
<property name="optimize" value="on"/> <property name="optimize" value="on"/>
<property name="deprecation" value="off"/> <property name="deprecation" value="off"/>
<tstamp/>
<filter token="year" value="${year}"/> <filter token="year" value="${year}"/>
<filter token="version" value="${version}"/> <filter token="version" value="${version}"/>
<filter token="date" value="${TODAY}"/> <filter token="date" value="${TODAY}"/>
@ -37,9 +40,18 @@
<mkdir dir="${build.dir}"/> <mkdir dir="${build.dir}"/>
<mkdir dir="${build.dest}"/> <mkdir dir="${build.dest}"/>
<mkdir dir="${build.src}"/> <mkdir dir="${build.src}"/>
<mkdir dir="${build.checkout}"/>
<cvs cvsRoot=":pserver:anonymous@coletta.helma.at:/opt/cvs"
package="hop"
dest="${build.checkout}"/>
<cvs cvsRoot=":pserver:anonymous@coletta.helma.at:/opt/cvs"
package="hopbuild/lib"
dest="${build.dir}"/>
<copy todir="${build.src}"> <copy todir="${build.src}">
<fileset dir="${src.java.dir}" <fileset dir="${build.checkout}/hop"
includes="helma/**/*.java,FESI/**/*.java,Acme/**/*.java"/> includes="helma/**/*.java,FESI/**/*.java,Acme/**/*.java"/>
</copy> </copy>
@ -55,19 +67,24 @@
deprecation="${deprecation}" deprecation="${deprecation}"
optimize="${optimize}"> optimize="${optimize}">
<classpath> <classpath>
<fileset dir="../lib"> <fileset dir="${build.dir}/hopbuild/lib">
<include name="**/*.jar" /> <include name="**/*.jar" />
</fileset> </fileset>
<pathelement path="${classpath}" /> <pathelement path="${classpath}" />
</classpath> </classpath>
</javac> </javac>
<rmic classname="helma.framework.core.Application" base="${build.dest}"/>
<rmic classname="helma.image.Server" base="${build.dest}"/>
<rmic classname="helma.image.RemoteImage" base="${build.dest}"/>
</target> </target>
<!-- =================================================================== --> <!-- =================================================================== -->
<!-- Compiles the source directory and creates a .jar file --> <!-- Creates a .jar file -->
<!-- =================================================================== --> <!-- =================================================================== -->
<target name="jar" depends="compile"> <target name="jar" depends="compile">
<jar jarfile="${build.dir}/${final.name}.jar" <jar jarfile="${build.dir}/${jar.name}.jar"
basedir="${build.dest}" basedir="${build.dest}"
excludes="**/package.html"/> excludes="**/package.html"/>
</target> </target>
@ -121,4 +138,13 @@
<!-- =================================================================== --> <!-- =================================================================== -->
<target name="package-all" depends="package-zip, package-tgz"> <target name="package-all" depends="package-zip, package-tgz">
</target> </target>
<!-- =================================================================== -->
<!-- Packages just the jar with ZIP -->
<!-- =================================================================== -->
<target name="snapshot" depends="jar">
<copy file="${build.dir}/${jar.name}.jar" tofile="../helma${DSTAMP}.jar"/>
</target>
</project> </project>