mirror of
https://github.com/encounter/cglib.git
synced 2026-03-30 11:03:56 -07:00
251 lines
7.8 KiB
XML
251 lines
7.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project basedir="." default="test" name="simplestore">
|
|
|
|
<!-- "cglib" was "simplestore" component of the Jakarta Commons Subproject $Id: build.xml,v 1.16 2003/02/03 22:35:27 herbyderby Exp $ -->
|
|
|
|
<!-- ========== Executable Targets ======================================== -->
|
|
|
|
<target description="Initialize and evaluate conditionals" name="init">
|
|
|
|
<!-- read properties from the build.properties, if any -->
|
|
<property name="component-propfile" value="${basedir}/build.properties"/>
|
|
|
|
<property name="component.name" value="cglib"/>
|
|
<property name="component.package" value="net.sf.cglib"/>
|
|
<property name="component.title" value="cglib"/>
|
|
<property name="component.version" value="rc-1.0"/>
|
|
|
|
<property name="build.home" value="build/proxy"/>
|
|
<property name="samples.build.home" value="build/samples"/>
|
|
|
|
|
|
<property name="test.build.home" value="build/test"/>
|
|
|
|
<property name="dist.home" value="dist"/>
|
|
<property name="source.home" value="src/proxy"/>
|
|
<property name="samples.source.home" value="src/proxy/samples"/>
|
|
<property name="source.test" value="src/test"/>
|
|
|
|
|
|
<property name="compile.debug" value="true"/>
|
|
<property name="compile.deprecation" value="true"/>
|
|
<property name="compile.optimize" value="true"/>
|
|
|
|
<path id="compile.classpath">
|
|
<pathelement location="${build.home}/classes"/>
|
|
<pathelement location="${bcel.jar}"/>
|
|
|
|
<fileset dir="./lib">
|
|
<include name="*.*"/>
|
|
</fileset>
|
|
</path>
|
|
|
|
|
|
|
|
<!-- ========== Test Execution Defaults =================================== -->
|
|
<property name="cp" value=""/>
|
|
<property name="classpath" value="${cp}:${junit.jar}:${bcel.jar}" />
|
|
<property name="test.entry" value="net.sf.cglib.TestAll" />
|
|
<property name="test.failonerror" value="true" />
|
|
<property name="test.runner" value="junit.textui.TestRunner" />
|
|
|
|
<echo message="-------- ${component.name} ${component.version} --------"/>
|
|
</target>
|
|
|
|
<target depends="init" description="Prepare build directory" name="prepare">
|
|
<mkdir dir="${build.home}"/>
|
|
<mkdir dir="${build.home}/classes"/>
|
|
<mkdir dir="${samples.build.home}/classes"/>
|
|
<mkdir dir="${build.home}/conf"/>
|
|
<mkdir dir="${test.build.home}/classes"/>
|
|
|
|
|
|
</target>
|
|
|
|
<target depends="prepare" description="Compile shareable components"
|
|
name="compile">
|
|
<javac debug="${compile.debug}" deprecation="${compile.deprecation}" destdir="${build.home}/classes" optimize="${compile.optimize}" srcdir="${source.home}">
|
|
<classpath refid="compile.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
<target depends="init" description="Clean build and distribution directories"
|
|
name="clean">
|
|
<delete dir="${build.home}"/>
|
|
<delete dir="${test.build.home}"/>
|
|
<delete dir="${dist.home}"/>
|
|
|
|
</target>
|
|
|
|
<target depends="clean,compile"
|
|
description="Clean and compile all components"
|
|
name="all"/>
|
|
|
|
|
|
|
|
<target depends="compile"
|
|
description="Create component Javadoc documentation"
|
|
name="javadoc">
|
|
<mkdir dir="docs/api"/>
|
|
<javadoc author="true"
|
|
bottom="Copyright (c) 2001 - Apache Software Foundation"
|
|
destdir="docs/api"
|
|
doctitle="<h1>${component.title}</h1>"
|
|
packagenames="net.sf.cglib.*"
|
|
access="public"
|
|
sourcepath="${source.home}" version="true"
|
|
windowtitle="${component.title} (Version ${component.version})"/>
|
|
</target>
|
|
|
|
|
|
<target depends="jar" name="proxy"/>
|
|
|
|
<target depends="compile" description="Create binary distribution" name="jar">
|
|
<mkdir dir="${dist.home}"/>
|
|
<mkdir dir="${build.home}/src"/>
|
|
|
|
|
|
<copy file="LICENSE" todir="${dist.home}"/>
|
|
|
|
<jar basedir="${build.home}/classes" jarfile="${dist.home}/${component.name}-${component.version}.jar" >
|
|
<include name="**/*"/>
|
|
<exclude name="**/BeanGenerator*" />
|
|
</jar>
|
|
|
|
<jar basedir="${build.home}/classes" jarfile="${dist.home}/${component.name}-full-${component.version}.jar" >
|
|
<zipfileset src="lib/bcel.jar"/>
|
|
<include name="**/*"/>
|
|
<exclude name="**/BeanGenerator*" />
|
|
</jar>
|
|
</target>
|
|
|
|
<target depends="compile,javadoc" description="Create docs and source distribution" name="srcjar">
|
|
<jar basedir="docs" jarfile="${dist.home}/${component.name}-docs-${component.version}.jar" >
|
|
<include name="**/*.html"/>
|
|
<include name="**/*.css"/>
|
|
<include name="**/*.php"/>
|
|
<include name="**/*.js"/>
|
|
<include name="**/*.pdf"/>
|
|
<include name="**/*.gif"/>
|
|
</jar>
|
|
|
|
<jar basedir="./" jarfile="${dist.home}/${component.name}-src-${component.version}.jar" >
|
|
<include name="build.xml"/>
|
|
<include name="LICENSE*"/>
|
|
<include name="README*"/>
|
|
<include name="src/**/*.java"/>
|
|
<include name="src/**/*.properties"/>
|
|
<include name="src/**/*.xml"/>
|
|
<include name="lib/**"/>
|
|
</jar>
|
|
</target>
|
|
|
|
<target depends="clean,jar,srcjar" description="Create binary, docs and source distributions" name="dist"/>
|
|
|
|
<target depends="compile" name="compile-samples">
|
|
<javac debug="${compile.debug}"
|
|
deprecation="${compile.deprecation}"
|
|
destdir="${samples.build.home}/classes"
|
|
optimize="${compile.optimize}"
|
|
srcdir="${samples.source.home}">
|
|
<classpath refid="compile.classpath"/>
|
|
</javac>
|
|
</target>
|
|
|
|
|
|
<target depends="compile-samples"
|
|
description="runs samples"
|
|
name="samples-beans">
|
|
<java classname="Beans"
|
|
failonerror="${test.failonerror}"
|
|
fork="yes"
|
|
>
|
|
|
|
<classpath>
|
|
<pathelement path="${samples.build.home}/classes"/>
|
|
<pathelement path="${build.home}/classes"/>
|
|
<fileset dir="./lib">
|
|
<include name="*.*"/>
|
|
</fileset>
|
|
</classpath>
|
|
</java>
|
|
</target>
|
|
|
|
|
|
|
|
<target depends="compile-samples"
|
|
description="runs samples"
|
|
name="samples-trace">
|
|
<java classname="Trace"
|
|
failonerror="${test.failonerror}"
|
|
fork="yes"
|
|
>
|
|
|
|
<classpath>
|
|
<pathelement path="${samples.build.home}/classes"/>
|
|
<pathelement path="${build.home}/classes"/>
|
|
<fileset dir="./lib">
|
|
<include name="*.*"/>
|
|
</fileset>
|
|
</classpath>
|
|
</java>
|
|
</target>
|
|
|
|
|
|
|
|
|
|
<target depends="compile,compile-samples"
|
|
name="build-test">
|
|
<javac debug="${compile.debug}"
|
|
deprecation="${compile.deprecation}"
|
|
destdir="${test.build.home}/classes"
|
|
optimize="${compile.optimize}"
|
|
srcdir="${source.test}"
|
|
>
|
|
|
|
<classpath refid="compile.classpath"/>
|
|
<classpath>
|
|
<pathelement path="${build.home}/classes"/>
|
|
<pathelement path="${samples.build.home}/classes" />
|
|
</classpath>
|
|
|
|
</javac>
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target depends="init,build-test"
|
|
description="runs (junit) unit tests"
|
|
name="test">
|
|
<java classname="${test.runner}"
|
|
failonerror="${test.failonerror}"
|
|
fork="yes"
|
|
>
|
|
|
|
<!-- jvmarg value="-Xrunhprof:cpu=times,file=debug.txt" / -->
|
|
<!-- jvmarg value="-verbose:gc" / -->
|
|
<!-- jvmarg value="-verbose:class" / -->
|
|
<!-- <sysproperty key="cglib.debugLocation" value="/tmp"/> -->
|
|
<arg value="${test.entry}"/>
|
|
<classpath>
|
|
<pathelement path="${build.home}/classes"/>
|
|
<pathelement path="${test.build.home}/classes"/>
|
|
<pathelement path="${classpath}"/>
|
|
<pathelement path="${java.class.path}"/>
|
|
<pathelement path="${source.test}"/>
|
|
<pathelement path="${samples.build.home}/classes" />
|
|
<fileset dir="./lib">
|
|
<include name="*.*"/>
|
|
</fileset>
|
|
</classpath>
|
|
</java>
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
</project>
|