|
Thanks for the article and the examples. Here is an ant build script that people could use to get them running quickly:
build.xml:
<?xml version="1.0"?>
<project name="springaoppart2" default="run" basedir=".">
<!--Edit properties in build.properties before running ant-->
<property file="build.properties"/>
<path id="all-libs">
<fileset dir="${springframework.dir}/lib">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${springframework.dir}/dist">
<include name="*.jar"/>
</fileset>
<fileset dir="${xerces.dir}">
<include name="*.jar"/>
</fileset>
</path>
<target name="clean">
<delete dir="classes"/>
<delete file="springconfig.xml"/>
</target>
<target name="build" >
<mkdir dir="classes"/>
<javac destdir="classes"
deprecation="false" optimize="false" failonerror="true">
<src path="${src.dir}"/>
<classpath refid="all-libs"/>
</javac>
<copy todir=".">
<fileset dir="${src.dir}">
<include name="springconfig.xml"/>
</fileset>
</copy>
</target>
<target name="run" depends="build">
<java classname="MainApplication">
<classpath>
<pathelement path="classes"/>
<pathelement path="."/>
<path refid="all-libs"/>
</classpath>
</java>
</target>
</project>
--------------------
build.properties:
springframework.dir=../spring-framework-1.1.4
xerces.dir=../xerces-2_6_2
#change this to run different examples
src.dir=src/Around Advice with Proceed and changed args Example
|