To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit 83c9da8b authored by steveb-oss's avatar steveb-oss
Browse files

[svn r390] flush a lot of cruft. Still needs some tlc.

parent 0193461c
......@@ -3,35 +3,6 @@
*
* Public targets are
* - dist (default) compile from source and create the dacapo jar file.
* - sourcedist download sources and build
* - sources download the sources from the 'net, if they are available.
* - srczip create source zip file
* - clean remove files generated buring the build process
* - distclean remove files generated buring the build process,
* including the 'results'
* - sourceclean remove all distribution files, and all downloadable
* sources. This prepares an "ip-clean" distribution.
* - depzip generate a zip file containing two jars for every benchmark,
* <bm>.jar and <bm>-deps.jar, containing the core of the
* benchmark and its external dependencies respectively
* - split-deps use this target in combination with any of the others
* to force external dependencies to be separated and placed
* into a second generated jar file.
* - release create main jar, srczip and depzip, each appropriately named
* according to the property "release.tag", so must be called
* in conjunction with -Drelease.tag="<some-release-id-string>"
* on the command line
* - <bmname> will compile a given benchmark
* - compile will compile all benchmarks
* - jar.quick will build a jar (undated) based on whatever has been compiled already
* - jar.date will build a dated jar based on whatever has been compiled already
*
* Therefore, individual benchmarks can be built into a jar using the
* benchmark name (note that lucene covers both lusearch and luindex),
* and the jar.quick or jar.date targets, which will create a jar with
* no other dependencies. For example:
* - antlr jar.quick creates a jar which can run the antlr benchmark (only)
*
* External tools required (apart from a JDK and Ant)
* - make
* - javacc, assumed to be on the path, with library files in
......@@ -53,129 +24,7 @@
<target name="dist" depends="harness,compile">
<move file="dacapo.jar" tofile="dacapo-${DSTAMP}.jar"/>
</target>
<!-- =================================
target: sourcedist
================================= -->
<target name="sourcedist" depends="sources,dist" description="--> Download the source and then build"/>
<!-- =================================
target: sources
================================= -->
<target name="sources" />
<!-- =================================
target: srczip
================================= -->
<target name="srczip" depends="clean,init" description="--> Creates a source zip">
<antcall target="srczip.basic">
<param name="zip.suffix" value=""/>
<param name="zip.basename" value="dacapo"/>
</antcall>
</target>
<!-- =================================
target: clean
================================= -->
<target name="clean" description="clean up after the build process">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${build}"/>
<fileset dir="${build.src}"/>
<fileset dir="${build.deps}"/>
<fileset dir="${extra}/eclipse-plugin/@dot"/>
<fileset dir="cachedir"/>
<fileset dir="${dep.tmp}"/>
<fileset dir="scratch"/>
</delete>
</target>
<!-- =================================
target: distclean
================================= -->
<target name="distclean" depends="clean"
description="clean up including the resulting jar files">
<delete dir="bin"/>
<delete>
<fileset dir="${basedir}">
<include name="dacapo*.jar"/>
</fileset>
</delete>
</target>
<!-- =================================
target: sourceclean
================================= -->
<target name="sourceclean" depends="distclean"
description="--> Delete all downloadable sources, too">
<delete dir="${sources}"/>
</target>
<!-- =================================
target: depzip
================================= -->
<target name="depzip" description="--> Create a zip file containing two jar files for each benchmark; one containing the benchmark, the other containing its dependencies">
<antcall target="depzip.basic">
<param name="zip.suffix" value=""/>
<param name="zip.basename" value="dacapo"/>
</antcall>
</target>
<!-- =================================
target: split-deps
================================= -->
<target name="split-deps" description="--> Split the distribution into a core jar and a jar containting dependencies">
<property name="externalize.deps" value="true"/>
</target>
<!-- =================================
target: release
================================= -->
<target name="release" depends="srczip.release,jar.release,depzip.release"
description="--> Perform full clean, download, and then create all files necessary for a release">
</target>
<!-- =================================
target: jar
================================= -->
<target name="jar" depends="compile,jar.date" description="generate the distribution jar file"/>
<!-- =================================
target: jar.quick
================================= -->
<target name="jar.quick" depends="harness,init" description="generate a jar file" >
<antcall target="jar.basic">
<param name="jar.suffix" value=""/>
<param name="jar.basename" value="dacapo"/>
<param name="jar.subdir" value="."/>
</antcall>
</target>
<!-- =================================
target: jar.date
================================= -->
<target name="jar.date" depends="harness,init" description="generate a jar file" >
<antcall target="jar.basic">
<param name="jar.suffix" value="-${DSTAMP}"/>
<param name="jar.basename" value="dacapo"/>
<param name="jar.subdir" value="."/>
</antcall>
</target>
<!-- END PUBLIC TARGETS -->
<!--
<project name="test" default="jar">
<target name="jar" >
<pathconvert property="cnf-files" pathsep=" ">
<map from="${basedir}/cnf/" to=""/>
<path>
<fileset dir="cnf" includes="*.cnf"/>
</path>
</pathconvert>
<echo file="benchmarks" message="${cnf-files}"/>
</target>
</project> -->
<!-- constraints -->
<property name="constraints.gnuclasspath" value="true"/>
......@@ -185,30 +34,9 @@
<property name="shakespeare.xml.url" value="http://metalab.unc.edu/bosak/xml/eg/shaks200.zip"/>
<!-- =================================
target: initialize directory structures
================================= -->
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
<mkdir dir="${jars}"/>
<mkdir dir="${build.src}"/>
<mkdir dir="${build.deps}"/>
<mkdir dir="${build}/cnf"/>
<mkdir dir="${zipdata}"/>
<mkdir dir="${dep.tmp}"/>
</target>
<!-- =================================
target: source
================================= -->
<target name="source" depends="init" description="add source to build">
<copy todir="${build}">
<fileset dir="${src}" includes="**/*.java"/>
<fileset dir="${bmsrc}" includes="**/*.java"/>
</copy>
</target>
<!-- =================================
......@@ -223,188 +51,10 @@
<ant antfile="harness/build.xml"/>
</target>
<!-- =================================
target: bms
================================= -->
<target name="bms" depends="compile" description="compile the benchmarks">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${bmsrc}" destdir="${build}"
debug="true" debuglevel="lines,vars,source"/>
</target>
<!-- =================================
target: jar.release
================================= -->
<target name="jar.release" depends="compile,harness,init" description="generate a jar file" >
<antcall target="jar.basic">
<param name="jar.suffix" value="-${release.tag}"/>
<param name="jar.basename" value="dacapo"/>
<param name="jar.subdir" value="."/>
</antcall>
</target>
<!-- =================================
target: srczip.release
================================= -->
<target name="srczip.release" depends="clean,init,sources" description="--> Creates a source zip">
<antcall target="srczip.basic">
<param name="zip.suffix" value="-${release.tag}"/>
<param name="zip.basename" value="dacapo"/>
</antcall>
</target>
<!-- =================================
target: depzip.release
================================= -->
<target name="depzip.release" description="--> Create a zip file containing two jar files for each benchmark; one containing the benchmark, the other containing its dependencies">
<antcall target="depzip.basic">
<param name="zip.suffix" value="-${release.tag}"/>
<param name="zip.basename" value="dacapo"/>
</antcall>
</target>
<!-- =================================
target: jar.basic
================================= -->
<target name="jar.basic" depends="harness,init" description="generate a jar file with suffix (may be null)" >
<antcall target="meta-inf">
<param name="jarroot" value="${build}"/>
</antcall>
<!-- Put everything in ${build} into the dacapo${jar.suffix}.jar file -->
<jar jarfile="${jar.subdir}/${jar.basename}${jar.suffix}.jar" basedir="${build}" index="true" manifest="${build}/META-INF/MANIFEST.MF"/>
<antcall target="jar.deps"/>
</target>
<!-- =================================
target: jar.deps
================================= -->
<target name="jar.deps" if="externalize.deps" depends="harness,init" description="generate a jar file with suffix (may be null)" >
<!-- Put everything in ${build.deps} into the MyProject-build-deps${jar.suffix}.jar file -->
<jar jarfile="${jar.subdir}/${jar.basename}-deps${jar.suffix}.jar" basedir="${build.deps}" index="true" />
</target>
<!-- =================================
target: srczip.basic
================================= -->
<target name="srczip.basic" depends="clean,init" description="--> Creates a source zip">
<zip destfile="${zip.basename}${zip.suffix}-src.zip">
<fileset dir=".." includes="extra/eclipse-plugin/*" excludes="**/CVS"/>
<fileset dir=".." includes="extra/eclipse-plugin/src/**" excludes="**/CVS"/>
<fileset dir=".." includes="extra/eclipse-plugin/META-INF/**" excludes="**/CVS"/>
<fileset dir=".." includes="benchmarks/LICENSE-2.0.txt"/>
<fileset dir=".." includes="benchmarks/README.txt"/>
<fileset dir=".." includes="benchmarks/bmsrc/**" excludes="**/CVS"/>
<fileset dir=".." includes="benchmarks/build.xml"/>
<fileset dir=".." includes="benchmarks/cnf/**" excludes="**/CVS"/>
<fileset dir=".." includes="benchmarks/data/**" excludes="**/CVS"/>
<fileset dir=".." includes="benchmarks/patches/**" excludes="**/CVS"/>
<fileset dir=".." includes="benchmarks/src/**" excludes="**/CVS"/>
</zip>
</target>
<!-- =================================
target: depzip.basic
================================= -->
<target name="depzip.basic" depends="dep.jars" description="--> Create a zip file containing two jar files for each benchmark; one containing the benchmark, the other containing its dependencies">
<zip basedir="${dep.tmp}" includes="**" destfile="${zip.basename}${zip.suffix}-xdeps.zip"/>
</target>
<!-- =================================
target: dep.jars
================================= -->
<target name="dep.jars" description="--> Create two jar files for each benchmark; one containing the benchmark, the other containing its dependencies">
<antcall target="dep.jar">
<param name="bm" value="antlr" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="batik" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="bloat" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="chart" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="derby" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="eclipse" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="fop" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="hsqldb" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="jython" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="luindex" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="lusearch" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="pmd" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="sunflow" />
</antcall>
<antcall target="dep.jar">
<param name="bm" value="xalan" />
</antcall>
</target>
<!-- =================================
target: dep.jar
================================= -->
<target name="dep.jar" depends="split-deps" description="--> Create two jar files for each benchmark; one containing the benchmark, the other containing its dependencies">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${build}"/>
<fileset dir="${build.deps}"/>
</delete>
<antcall target="${bm}"/>
<antcall target="jar.basic">
<param name="jar.basename" value="${bm}" />
<param name="jar.suffix" value="" />
<param name="jar.subdir" value="${dep.tmp}" />
</antcall>
</target>
<!-- =================================
target: meta-inf
================================= -->
<target name="meta-inf" depends="init" description="meta-inf for jars" >
<copy todir="${jarroot}/META-INF" overwrite="true">
<fileset dir="${src}/META-INF"/>
</copy>
</target>
<!-- *************************************************************************** -->
<!-- Fetch sources -->
<!-- *************************************************************************** -->
<target name="init.sources" description="Prepare to download sources">
<mkdir dir="${sources}"/>
</target>
<!-- *************************************************************************** -->
<!-- Build -->
<!-- *************************************************************************** -->
<!-- =================================
target: ant
================================= -->
<target name="ant" description="--> The ant library - required by some other benchmarks">
<ant antfile="${ant.dir}/ant.xml" target="build" inheritAll="true"/>
</target>
<!-- =================================
target: antlr
================================= -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment