* 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:
parent
3902f06136
commit
7298b70d3b
1 changed files with 9 additions and 1 deletions
|
@ -91,7 +91,14 @@
|
||||||
<!-- copy helma db style sheet -->
|
<!-- copy helma db style sheet -->
|
||||||
<copy file="${build.src}/helma/objectmodel/dom/helma.xsl"
|
<copy file="${build.src}/helma/objectmodel/dom/helma.xsl"
|
||||||
todir="${build.classes}/helma/objectmodel/dom" />
|
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"
|
source="1.3"
|
||||||
target="1.3"
|
target="1.3"
|
||||||
destdir="${build.classes}"
|
destdir="${build.classes}"
|
||||||
|
@ -100,6 +107,7 @@
|
||||||
optimize="${optimize}">
|
optimize="${optimize}">
|
||||||
<classpath refid="build.class.path" />
|
<classpath refid="build.class.path" />
|
||||||
</javac>
|
</javac>
|
||||||
|
<delete dir="${build.work}/src"/>
|
||||||
<rmic classname="helma.framework.core.RemoteApplication" base="${build.classes}"/>
|
<rmic classname="helma.framework.core.RemoteApplication" base="${build.classes}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue