Subject | Proposed patches for optional compiling |
---|---|
Author | William L. Thomson Jr. |
Post date | 2006-05-09T16:53:52Z |
Here are two proposed patches to allow for one to specify if tests and
examples should be compiled. Of course it can be modified or expanded
upon.
--- client-java/build/archive.xml 2005-06-25 19:26:26.000000000 -0400
+++ build/archive.xml 2006-05-09 12:41:03.000000000 -0400
@@ -57,7 +57,7 @@
</target>
- <target name="jar-test" depends="compile">
+ <target name="jar-test" depends="compile" if="tests">
<mkdir dir="${build.lib}"/>
<jar jarfile="${build.lib}/${archive.name.test}" manifest="${build.etc}/default.mf">
--- client-java/build/compile.xml 2006-05-09 12:30:36.000000000 -0400
+++ build/compile.xml 2006-05-09 12:38:08.000000000 -0400
@@ -13,7 +13,7 @@
<ant antfile="build_native.xml"/>
</target>
- <target name="compile-examples">
+ <target name="compile-examples" if="examples">
<mkdir dir="${build.examples}"/>
<javac srcdir="${source.examples}"
destdir="${build.examples}"
@@ -121,7 +121,7 @@
</path>
</target>
- <target name="compile-tests" depends="compile-pool,set-jdbc-20-test,set-jdbc-30-test">
+ <target name="compile-tests" depends="compile-pool,set-jdbc-20-test,set-jdbc-30-test" if="tests">
<mkdir dir="${build.test}"/>
<javac srcdir="${source.test}"
destdir="${build.test}"
--
Sincerely,
William L. Thomson Jr.
Obsidian-Studios, Inc.
http://www.obsidian-studios.com
examples should be compiled. Of course it can be modified or expanded
upon.
--- client-java/build/archive.xml 2005-06-25 19:26:26.000000000 -0400
+++ build/archive.xml 2006-05-09 12:41:03.000000000 -0400
@@ -57,7 +57,7 @@
</target>
- <target name="jar-test" depends="compile">
+ <target name="jar-test" depends="compile" if="tests">
<mkdir dir="${build.lib}"/>
<jar jarfile="${build.lib}/${archive.name.test}" manifest="${build.etc}/default.mf">
--- client-java/build/compile.xml 2006-05-09 12:30:36.000000000 -0400
+++ build/compile.xml 2006-05-09 12:38:08.000000000 -0400
@@ -13,7 +13,7 @@
<ant antfile="build_native.xml"/>
</target>
- <target name="compile-examples">
+ <target name="compile-examples" if="examples">
<mkdir dir="${build.examples}"/>
<javac srcdir="${source.examples}"
destdir="${build.examples}"
@@ -121,7 +121,7 @@
</path>
</target>
- <target name="compile-tests" depends="compile-pool,set-jdbc-20-test,set-jdbc-30-test">
+ <target name="compile-tests" depends="compile-pool,set-jdbc-20-test,set-jdbc-30-test" if="tests">
<mkdir dir="${build.test}"/>
<javac srcdir="${source.test}"
destdir="${build.test}"
--
Sincerely,
William L. Thomson Jr.
Obsidian-Studios, Inc.
http://www.obsidian-studios.com