From 52a1cbfb54a14691bb652ac8cf069b9e3e1eab96 Mon Sep 17 00:00:00 2001 From: garyo Date: Fri, 29 May 2009 02:07:18 +0000 Subject: [PATCH] Doc patch from issue 2282 (mention JAVAVERSION in users guide), thanks to Knut Arild Erstad. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4214 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- doc/user/java.in | 20 ++++++++++++++++++++ doc/user/java.xml | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/doc/user/java.in b/doc/user/java.in index 9768dabc..e1675c13 100644 --- a/doc/user/java.in +++ b/doc/user/java.in @@ -219,6 +219,26 @@ scons -Q -c classes + + + To ensure correct handling of .class + dependencies in all cases, you need to tell &SCons; which Java + version is being used. This is needed because Java 1.5 changed + the .class file names for nested anonymous + inner classes. Use the JAVAVERSION construction + variable to specify the version in use. With Java 1.6, the + one-liner example can then be defined like this: + + + + + Java('classes', 'src', JAVAVERSION='1.6') + + + + See JAVAVERSION in the man page for more information. + +
diff --git a/doc/user/java.xml b/doc/user/java.xml index 402d037f..fddc646b 100644 --- a/doc/user/java.xml +++ b/doc/user/java.xml @@ -155,6 +155,26 @@ Removed classes/AdditionalClass3.class + + + To ensure correct handling of .class + dependencies in all cases, you need to tell &SCons; which Java + version is being used. This is needed because Java 1.5 changed + the .class file names for nested anonymous + inner classes. Use the JAVAVERSION construction + variable to specify the version in use. With Java 1.6, the + one-liner example can then be defined like this: + + + + + Java('classes', 'src', JAVAVERSION='1.6') + + + + See JAVAVERSION in the man page for more information. + +
-- 2.26.2