* Copy java source files over to work/src before compiling. This has the following implications:

- It allows us to replace the __builddate__ token in Server.java without changing the original file.
  - It makes sure all files are recompiled each time, avoiding compatible type change errors.
This commit is contained in:
hns 2006-04-28 22:24:54 +00:00
parent 3902f06136
commit 7298b70d3b

View file

@ -91,7 +91,14 @@
<!-- copy helma db style sheet -->
<copy file="${build.src}/helma/objectmodel/dom/helma.xsl"
todir="${build.classes}/helma/objectmodel/dom" />
<javac srcdir="${build.src}"
<!-- copy source files over to work directory -->
<mkdir dir="${build.work}/src" />
<copy todir="${build.work}/src" overwrite="true">
<fileset dir="${build.src}" includes="**/*.java"/>
</copy>
<replace file="${build.work}/src/helma/main/Server.java"
token="__builddate__" value="${TODAY}"/>
<javac srcdir="${build.work}/src"
source="1.3"
target="1.3"
destdir="${build.classes}"
@ -100,6 +107,7 @@
optimize="${optimize}">
<classpath refid="build.class.path" />
</javac>
<delete dir="${build.work}/src"/>
<rmic classname="helma.framework.core.RemoteApplication" base="${build.classes}"/>
</target>