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

Bill Deegan bill at baddogconsulting.com
Fri Nov 17 18:04:18 EST 2017


Also what is the other technique used elsewhere in your codebase to resolve
the issue?

On Fri, Nov 17, 2017 at 6:02 PM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> Can you make a simple testcase to reproduce?
>
> Then we'll be able to add to the test suite and work on resolving it more
> easily.
>
> -Bill
>
> On Fri, Nov 17, 2017 at 12:02 PM, Mats Wichmann <mats at wichmann.us> wrote:
>
>> On 11/17/2017 09:29 AM, Mats Wichmann wrote:
>> > On 11/17/2017 09:03 AM, Bill Deegan wrote:
>> >> Mats,
>> >>
>> >> All return values from builders are NodeLists, (list of nodes)
>> >>
>> >> Can you try:
>> >> source=simpleclient_classes+['MANIFEST.MF'])
>> >
>> > indeed, this is the conclusion I was arriving at just now, as the way it
>> > is called looked like:
>> >
>> >    source=[[classA, classB, classC], 'MANIFEST.MF']
>> >
>> > and the embedded list is what causes the problem. there's only one
>> > instance of it in our code, the others used another technique, each with
>> > a comment "scons computes this wrong so work around".
>> >
>> > The suggestion you give doesn't work, for reasons I'm not yet sure of,
>>
>> sorry, "doesn't work" as in:
>>
>> Preparing target
>> out/linux/x86_64/debug/java/examples-java/simpleclient/simpl
>> eclient.jar...
>> jar cfm
>> out/linux/x86_64/debug/java/examples-java/simpleclient/simpleclient.jar
>> java/examples-java/simpleclient/MANIFEST.MF <function jarSources at
>> 0x7ff8f7800aa0>
>> sh: -c: line 0: syntax error near unexpected token `newline'
>> sh: -c: line 0: `jar cfm
>> "out/linux/x86_64/debug/java/examples-java/simpleclient/simpleclient.jar"
>> "java/examples-java/simpleclient/MANIFEST.MF" <function jarSources at
>> 0x7ff8f7800aa0>'
>> scons: ***
>> [out/linux/x86_64/debug/java/examples-java/simpleclient/simpleclient.jar]
>> Error 1
>>
>>
>> the "function jarSources" is confusing and presumably the problem, it
>> certainly shouldn't be part of the shell command passed to invoke jar...
>> _______________________________________________
>> 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/20171117/b99c6649/attachment.html>


More information about the Scons-users mailing list