Boost logo

Boost-Build :

Subject: Re: [Boost-build] Correct way to remove path grist form sources
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-08-11 14:49:52


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
>
>


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