aboutsummaryrefslogtreecommitdiffstats
path: root/make/build.xml
diff options
context:
space:
mode:
authorWade Walker <[email protected]>2014-03-07 16:28:41 -0600
committerWade Walker <[email protected]>2014-03-07 16:28:41 -0600
commit8c406de8eb50cf785b407e2facb3502e364a66ce (patch)
treec8567b76f64d0c5dd4a72c2df2122c4e802a0d9b /make/build.xml
parent6b865b8650b62f448760cfbe50cc563f7ab85da9 (diff)
Remove warnings, turn on linting, fix Eclipse.
Removed warnings due to memoryMaximumSize being ignored when javac isn't forked. Turned on all linting. Changed the arguments of uncomment-function-params so it will run from within Eclipse properly (using basedir instead of user.dir, since only the former will be properly set both inside Eclipse and on the command line).
Diffstat (limited to 'make/build.xml')
-rw-r--r--make/build.xml12
1 files changed, 8 insertions, 4 deletions
diff --git a/make/build.xml b/make/build.xml
index e7425eba..5bd8c6e3 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -335,6 +335,7 @@
bootclasspath="${target.rt.jar}"
debug="${javacdebug}" debuglevel="${javacdebuglevel}">
<src path="${basedir}/../etc/src"/>
+ <compilerarg value="-Xlint:all"/>
</javac>
<taskdef name="update-headers" classname="com.jogamp.ant.HeaderFileDownloader" classpath="${etc.build.dir}"/>
@@ -356,8 +357,9 @@
<mkdir dir="${headers.dest}"/>
<!--uncomment function names in c headers and copy modified files into include path-->
- <uncomment-function-params src="${headers.orig}/cl.h" dest="${headers.dest}/cl.h"/>
- <uncomment-function-params src="${headers.orig}/cl_gl.h" dest="${headers.dest}/cl_gl.h"/>
+ <!-- need to pass in basedir or it won't work inside Eclipse, where user.dir is Eclipse's bin dir-->
+ <uncomment-function-params src="${basedir}/${headers.orig}/cl.h" dest="${basedir}/${headers.dest}/cl.h"/>
+ <uncomment-function-params src="${basedir}/${headers.orig}/cl_gl.h" dest="${basedir}/${headers.dest}/cl_gl.h"/>
<!--nothing to uncomment in this headers-->
<copy file="${headers.orig}/cl_platform.h" toDir="${headers.dest}" overwrite="true"/>
@@ -552,7 +554,6 @@
<javac destdir="${classes}"
includeantruntime="false"
excludes="${java.part.android}"
- memoryMaximumSize="${javac.memorymax}"
encoding="UTF-8"
source="${target.sourcelevel}"
target="${target.targetlevel}"
@@ -561,6 +562,9 @@
<classpath refid="javac.classpath"/>
<src path="${src.java}" />
<src path="${src.generated.java}" />
+ <compilerarg value="-Xlint:all"/>
+ <!-- suppress warning due to @CLProperty annotation, which is used at runtime but not during compilation -->
+ <compilerarg value="-Xlint:-processing"/>
</javac>
</target>
@@ -568,7 +572,6 @@
<!--compile gluegen-rt-android last-->
<javac destdir="${classes}"
includeantruntime="false"
- memoryMaximumSize="${javac.memorymax}"
encoding="UTF-8"
source="${target.sourcelevel}"
target="${target.targetlevel}"
@@ -577,6 +580,7 @@
<classpath refid="javac.android.classpath"/>
<src path="${src.java}" />
<src path="${src.generated.java}" />
+ <compilerarg value="-Xlint:all"/>
</javac>
</target>