summaryrefslogtreecommitdiffstats
path: root/test/Java/java_version_image/src2
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2022-10-16 18:43:12 (GMT)
committerMats Wichmann <mats@linux.com>2022-10-17 19:41:17 (GMT)
commitcbe5d046c82d6f3c3e9952ffdbcf457be1dccb72 (patch)
tree877931b212182c8e51ad4ae9f64bc7ed19b4ff13 /test/Java/java_version_image/src2
parentb23bbee1bfcffab6c22f6d32689a16c093a983d3 (diff)
downloadSCons-cbe5d046c82d6f3c3e9952ffdbcf457be1dccb72.zip
SCons-cbe5d046c82d6f3c3e9952ffdbcf457be1dccb72.tar.gz
SCons-cbe5d046c82d6f3c3e9952ffdbcf457be1dccb72.tar.bz2
Java scanner don't split JAVACLASSPATH on space
The scanner now splits JAVACLASSPATH before searching only if it is passed as a scalar (string); it no longer recurses to split elements of a list value - this is more consistent with other SCons usage. No longer splits on space, rather splits on os.pathsep, as considerably more useful for a search-path variable. The latter change avoids breaking paths with an embedded space (usually from Windows). This is a "breaking change" from the new behavior introduced in 4.4 where a JAVACLASSPATH like "aaa bbb ccc" would have been split into ["aaa", "bbb", "ccc"] - now it will be left unchanged in the scanner. However a JAVACLASSPATH like "aaa;bbb;ccc" will now be split into ["aaa", "bbb", "ccc"]. This behavior only affects the scanner - there is no change in how JAVACLASSPATH gets transformed into the "-classpath ARG" argument when calling JDK elements. The former behavior was presumably unintended, and definitely broke on a space-containing path (e.g. "My Classes". The unit test is expanded to test for a path string with spaces, and for a path string containing a search-path separator. Documentation tweaks: explain better how JAVACLASSPATH (and the other two Java path variables) can be specified, and whether or not SCons changes them before calling the JDK commands. Added note that JAVABOOTCLASSPATH is no longer useful, and a note about the side effect that SCons always supplies a "-sourcepath" argument when calling javac. Fixes #4243 Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'test/Java/java_version_image/src2')
0 files changed, 0 insertions, 0 deletions