summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-01-22 23:38:38 +0100
committerSven Gothel <[email protected]>2012-01-22 23:38:38 +0100
commit23019bb5899acddca17d1d951798d1c70d2d1f09 (patch)
treedd629ef59f8f848e7866ca8bf4e2282b91ac4e29 /build.xml
parenta146d102ca36078d8c8cc67b20e88fd5106ac4d9 (diff)
Fix Bug 516 (Determine Java Version) / See gluegen: 64639b805a32338385421f168e12c1ef7f749d00
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml17
1 files changed, 14 insertions, 3 deletions
diff --git a/build.xml b/build.xml
index 300ae362..c4ae5b33 100644
--- a/build.xml
+++ b/build.xml
@@ -34,8 +34,11 @@
<isset property="c.dont.compile"/>
</condition>
- <target name="-pre-init" depends="gluegen.cpptasks.detect.os">
- <!-- gluegen.cpptasks... sets jvmDataModel.arg -->
+ <target name="-pre-init" depends="jogamp.env.init,gluegen.cpptasks.detect.os">
+ <property name="javac.debug" value="${javacdebug}"/>
+ <property name="javac.source" value="${target.sourcelevel}"/>
+ <property name="javac.target" value="${target.targetlevel}"/>
+ <property name="javac.compilerargs" value="-bootclasspath ${target.rt.jar} -Xlint -g:${javacdebuglevel}"/>
</target>
<!-- -post-init is after all properties are imported -->
@@ -247,7 +250,15 @@
<!--compile build utilities-->
<mkdir dir="${etc.build.dir}"/>
- <javac destdir="${etc.build.dir}" classpath="${ant.core.lib}" source="1.5" debug="true" debuglevel="lines,vars,source" includeantruntime="false">
+ <javac destdir="${etc.build.dir}"
+ classpath="${ant.core.lib}"
+ fork="yes"
+ includeAntRuntime="false"
+ memoryMaximumSize="${javac.memorymax}"
+ source="${target.sourcelevel}"
+ target="${target.targetlevel}"
+ bootclasspath="${target.rt.jar}"
+ debug="${javacdebug}" debuglevel="${javacdebuglevel}">
<src path="${basedir}/etc/src"/>
</javac>