[Scons-users] problem with new Jar builder-wrapper in 3.0.1
Mats Wichmann
mats at wichmann.us
Fri Nov 17 12:02:07 EST 2017
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/simpleclient.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...
More information about the Scons-users
mailing list