summaryrefslogtreecommitdiffstats
path: root/doc/user/java.xml
diff options
context:
space:
mode:
authorGary Oberbrunner <garyo@oberbrunner.com>2009-05-29 02:07:18 (GMT)
committerGary Oberbrunner <garyo@oberbrunner.com>2009-05-29 02:07:18 (GMT)
commit2d1467917b498e9ae827ff5f0571dd84b7978c86 (patch)
tree130915d618b47be80ef1b20060b61c5dcdda09fd /doc/user/java.xml
parent59efed12aebfcefcbcab1793e57d7b51552d7c2e (diff)
downloadSCons-2d1467917b498e9ae827ff5f0571dd84b7978c86.zip
SCons-2d1467917b498e9ae827ff5f0571dd84b7978c86.tar.gz
SCons-2d1467917b498e9ae827ff5f0571dd84b7978c86.tar.bz2
Doc patch from issue 2282 (mention JAVAVERSION in users guide), thanks to Knut Arild Erstad.
Diffstat (limited to 'doc/user/java.xml')
-rw-r--r--doc/user/java.xml20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/user/java.xml b/doc/user/java.xml
index 402d037..fddc646 100644
--- a/doc/user/java.xml
+++ b/doc/user/java.xml
@@ -155,6 +155,26 @@
Removed classes/AdditionalClass3.class
</screen>
+ <para>
+
+ To ensure correct handling of <filename>.class</filename>
+ dependencies in all cases, you need to tell &SCons; which Java
+ version is being used. This is needed because Java 1.5 changed
+ the <filename>.class</filename> file names for nested anonymous
+ inner classes. Use the <varname>JAVAVERSION</varname> construction
+ variable to specify the version in use. With Java 1.6, the
+ one-liner example can then be defined like this:
+
+ </para>
+
+ <programlisting>
+ Java('classes', 'src', JAVAVERSION='1.6')
+ </programlisting>
+
+ <para>
+ See <varname>JAVAVERSION</varname> in the man page for more information.
+ </para>
+
</section>
<section>