Boost logo

Boost-Build :

Subject: Re: [Boost-build] Correct way to remove path grist form sources
From: John Bito (jwbito_at_[hidden])
Date: 2009-08-11 15:27:43


I found it. Since my action was named jar, it tried to invoke the
main-target rule named jar, so it's not surprising it didn't do what I
wanted.

I wonder if it's worthwhile to try and issue a warning if a module's
top-level rule is overwritten. Then I could just be sure to write an
explicit rule for every action and I'd be told when I was causing a
problem.

On Tue, Aug 11, 2009 at 11:49, Vladimir Prus<ghost_at_[hidden]> wrote:
> On Tuesday 11 August 2009 John Bito wrote:
>
>> I wonder about the source of the error
>>
>> error: properties found in the 'sources' parameter
>>
>> I'm trying to develop generators for java -> class and class -> jar.
>> Accordingly, I've registered a main target rule and two generators:
>>
>> type.register JAVA : java groovy ;
>> type.register CLASS : class ;
>> type.register JAR : jar ;
>>
>> rule jar ( target-name : sources * : requirements * : default-build * )
>> {
>>     targets.create-typed-target JAR : [ project.current ] : $(target-name) :
>>         $(sources) : $(requirements) : $(default-build) ;
>> }
>>
>> generators.register-composing java.jar : CLASS : JAR ;
>> generators.register-standard java.javac : JAVA : CLASS ;
>>
>> jar jarfile : [ glob *.java ] ;
>>
>> Of course, the build doesn't run any actions because of the error above.
>>
>> I'm planning to implement custom generators that override run, but
>> first I'd like to know why the built-in generator gives this problem.
>
> John,
> I am really not sure that the above code is what produces the error.
> Is there stacktrace? Can you add debug prints to see what sources
> list actually is?
>
>> Thanks!
>> John
>> PS
>> I might be able to work on the python version of sun tools, depending
>> on whether it's feasible to get a java build working based on the
>> python port in its current state.
>
> If you sent me your current java support, I should be able to answer
> this question.
>
> - Volodya
>
>
>> _______________________________________________
>> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>>
>>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk