2003-09-09 20:26:18 +02:00
|
|
|
<!--
|
|
|
|
|
|
|
|
This build script will create a directory called burn that is
|
|
|
|
_almost_ suitable for burning onto a CD. However, there
|
|
|
|
are a number of things that should be done to this directory
|
|
|
|
before actually burning:
|
|
|
|
|
|
|
|
The PDFs in the print directory need to be manually generated.
|
|
|
|
Use the content of foo.pdf.contents to generate foo.pdf, and
|
|
|
|
and then delete the foo.pdf.contents directory.
|
|
|
|
|
|
|
|
The powerpoint and packages directory should be populated
|
|
|
|
with whatever you want to populate it with. The
|
|
|
|
packages directory is typically filled with Linux installers
|
|
|
|
and a clean AspectJ installer.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<project name="build" default="burn" basedir=".">
|
2003-08-27 22:09:36 +02:00
|
|
|
<description>
|
2003-09-09 20:26:18 +02:00
|
|
|
Build a CD image containing AspectJ exercises.
|
2003-08-27 22:09:36 +02:00
|
|
|
</description>
|
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<!-- CUSTOMIZE THESE PROPERTIES -->
|
2003-08-27 22:09:36 +02:00
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<!-- this directory should hold a clean unpacked AspectJ release -->
|
2004-08-18 16:20:26 +02:00
|
|
|
<property name="aj.home" value="c:/apps/aspectj" />
|
2003-09-09 20:26:18 +02:00
|
|
|
|
|
|
|
<!-- this is the name of the event -->
|
2004-08-18 16:20:26 +02:00
|
|
|
<property name="aj.event" value="oopsla2004" />
|
2003-09-09 20:26:18 +02:00
|
|
|
|
|
|
|
<!-- NO CUSTOMIZABLE PROPERTIES BELOW HERE -->
|
|
|
|
|
|
|
|
<property name="burndir" value="burn" />
|
|
|
|
<property name="eventdir" value="${burndir}/aj-${aj.event}" />
|
|
|
|
<property name="packagedir" value="${burndir}/packages" />
|
|
|
|
<property name="printdir" value="${burndir}/print" />
|
|
|
|
<property name="powerpointdir" value="${burndir}/powerpoint" />
|
2003-08-27 22:09:36 +02:00
|
|
|
|
|
|
|
<!-- now real targets -->
|
2003-09-09 20:26:18 +02:00
|
|
|
<target name="burn" depends="clean,skeleton,event,answers,printables" />
|
2003-08-27 22:09:36 +02:00
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<target name="printables" depends="skeleton">
|
|
|
|
<delete dir="${printdir}/answers.pdf.contents" />
|
|
|
|
<mkdir dir="${printdir}/answers.pdf.contents" />
|
|
|
|
<copy toDir="${printdir}/answers.pdf.contents">
|
|
|
|
<fileset dir="answers" includes="*.java" excludes="Answer.java"/>
|
|
|
|
</copy>
|
2003-08-27 22:09:36 +02:00
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<delete dir="${printdir}/exercises.pdf.contents" />
|
|
|
|
<mkdir dir="${printdir}/exercises.pdf.contents" />
|
|
|
|
<copy toDir="${printdir}/exercises.pdf.contents" file="index.html" />
|
2004-08-18 16:20:26 +02:00
|
|
|
<copy toDir="${printdir}/exercises.pdf.contents" file="figures_classes.gif" />
|
|
|
|
<copy toDir="${printdir}/exercises.pdf.contents" file="${aj.home}/doc/quick.pdf" />
|
2003-09-09 20:26:18 +02:00
|
|
|
|
|
|
|
<delete dir="${printdir}/install.pdf.contents" />
|
|
|
|
<mkdir dir="${printdir}/install.pdf.contents" />
|
|
|
|
<copy toDir="${printdir}/install.pdf.contents" file="install.txt" />
|
2003-08-27 22:09:36 +02:00
|
|
|
</target>
|
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<target name="answers" depends="skeleton">
|
|
|
|
<zip destfile="${packagedir}/${aj.event}-answers.zip">
|
|
|
|
<zipfileset dir="answers"
|
|
|
|
prefix="aj-${aj.event}/answers"
|
|
|
|
includes="*.java"
|
|
|
|
excludes="Answer.java"
|
2003-08-27 22:09:36 +02:00
|
|
|
/>
|
2003-09-09 20:26:18 +02:00
|
|
|
</zip>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="event" depends="tools,exercises">
|
|
|
|
<filter token="aj.event" value="${aj.event}" />
|
|
|
|
<copy file="install.txt" toDir="${eventdir}" filtering="yes" />
|
2003-08-27 22:09:36 +02:00
|
|
|
</target>
|
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<target name="exercises" depends="skeleton">
|
|
|
|
<copy toDir="${eventdir}">
|
|
|
|
<fileset dir="."
|
|
|
|
includes="junit.jar,base.lst,guibase.lst,*.html,support/**/*.java,figures/**/*.java,tests/**/*.java,answers/Answer.java"
|
2003-08-27 22:09:36 +02:00
|
|
|
/>
|
2003-09-09 20:26:18 +02:00
|
|
|
</copy>
|
2003-08-27 22:09:36 +02:00
|
|
|
</target>
|
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<target name="tools" depends="skeleton">
|
|
|
|
<mkdir dir="${eventdir}/aspectj" />
|
2003-08-27 22:09:36 +02:00
|
|
|
<filter token="aj.event" value="${aj.event}" />
|
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<copy toDir="${eventdir}/aspectj">
|
2003-08-27 22:09:36 +02:00
|
|
|
<fileset dir="${aj.home}" excludes="bin/**" />
|
|
|
|
</copy>
|
2003-09-09 20:26:18 +02:00
|
|
|
<copy toDir="${eventdir}/aspectj/bin" filtering="yes">
|
2003-08-27 22:09:36 +02:00
|
|
|
<fileset dir="scripts" excludes="setpaths*" />
|
|
|
|
</copy>
|
2003-09-09 20:26:18 +02:00
|
|
|
<copy toDir="${eventdir}" filtering="yes">
|
2003-08-27 22:09:36 +02:00
|
|
|
<fileset dir="scripts" includes="setpaths*" />
|
|
|
|
</copy>
|
2003-09-09 20:26:18 +02:00
|
|
|
<fixcrlf srcDir="${eventdir}"
|
2003-08-27 22:09:36 +02:00
|
|
|
includes="setpaths.bat,aspectj/bin/ajbrowser.bat,aspectj/bin/ajc.bat"
|
|
|
|
eol="crlf" />
|
2003-09-09 20:26:18 +02:00
|
|
|
<fixcrlf srcDir="${eventdir}"
|
2003-08-27 22:09:36 +02:00
|
|
|
includes="setpaths.sh,setpaths.csh,aspectj/bin/ajbrowser,aspectj/bin/ajc"
|
|
|
|
eol="lf" />
|
|
|
|
</target>
|
|
|
|
|
2003-09-09 20:26:18 +02:00
|
|
|
<target name="skeleton">
|
|
|
|
<mkdir dir="${burndir}" />
|
|
|
|
<mkdir dir="${eventdir}" />
|
|
|
|
<mkdir dir="${packagedir}" />
|
|
|
|
<mkdir dir="${printdir}" />
|
|
|
|
<mkdir dir="${powerpointdir}" />
|
2003-08-27 22:09:36 +02:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="clean">
|
2003-09-09 20:26:18 +02:00
|
|
|
<delete dir="burn" />
|
2003-08-27 22:09:36 +02:00
|
|
|
</target>
|
|
|
|
|
2003-08-28 19:34:47 +02:00
|
|
|
<target name="javaclean">
|
2003-09-09 20:26:18 +02:00
|
|
|
<delete dir="burn" />
|
2003-08-28 19:34:47 +02:00
|
|
|
</target>
|
|
|
|
|
2003-08-27 22:09:36 +02:00
|
|
|
</project>
|
|
|
|
|