diff options
Diffstat (limited to 'doc/user/java.xml')
-rw-r--r-- | doc/user/java.xml | 20 |
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> |