[Scons-users] problem with new Jar builder-wrapper in 3.0.1

Mats Wichmann mats at wichmann.us
Fri Nov 17 18:32:06 EST 2017


On 11/17/2017 04:04 PM, Bill Deegan wrote:
> Also what is the other technique used elsewhere in your codebase to resolve
> the issue?

not using the return from the Java builder.

A working (but as noted not ideal) example does this:

simpleclientserver_classes = jdk_env.Java(target='classes',
source=['src/main/java'])
# jdk_env.Jar(target='simpleclientserver.jar',
#             source=[simpleclientserver_classes, 'MANIFEST.MF'])
# SCons is incorrectly calculating the output classes for the
simpleclientserver sample.
# The following is a work around for the build command above. The
unfortunate
# side effect of this work around results in a larger output.
example_jar =jdk_env.Jar(target='simpleclientserver.jar',
            source=['classes','MANIFEST.MF'],
            JARCHDIR='$SOURCE')


that is, "classes' string (whatever that means) instead of using
simpleclientserver_classes as part of the source description.


More information about the Scons-users mailing list