[Scons-users] Regression in Jar tool in v3.0.1?

Daniel Moody dmoody256 at gmail.com
Mon Nov 27 08:55:35 EST 2017


Hey Abigail,

Thanks for reporting this, I think I may have a fix and regression test
here:
https://github.com/SCons/scons/pull/19

If you would like to test it out independently, you can git my branch and
see if it solves the issues for you:

git clone -b JarFlattenSource https://github.com/dmoody256/scons.git
SconsJarFlattenSource

Then from your SConstruct directory, use the local scons like this:
python <Cloned Directory Path>/SconsJarFlattenSource/src/script/scons.py

Best Regards






On Mon, Nov 27, 2017 at 7:21 AM, Abigail Bunyan via Scons-users <
scons-users at scons.org> wrote:

> The following snippet builds fine in v2.5.1 and v3.0.0:
>
>     Java('classes', 'Widget.java')
>     Jar('mylib.jar', Dir('classes'))
>
> And it runs the command: `jar cf mylib.jar classes`.
>
> But under v3.0.1, it instead runs the command `jar cf mylib.jar` (with no
> following arguments), and it gives the error:
>
>     'c' flag requires manifest or input files to be specified!
>     Usage: jar...
>     ...
>     scons: *** [mylib.jar] Error 1
>     scons: building terminated because of errors.
>
> I assume this is caused by the changes to the Jar tool in v3.0.1, as
> mentioned
> in the changelog.
>
> As a workaround, the following snippet builds fine:
>
>     Java('classes', 'Widget.java')
>     Jar('mylib.jar', 'classes') # just removed the Dir(...) call
>
> Unless anybody disagrees (eg. believes that this isn't a valid method of
> invoking the Jar tool), I'll file a bug report.
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20171127/a0dacd3e/attachment.html>


More information about the Scons-users mailing list