To compile some internal linux based projects I'm looking to write a simple
compiler that creates an scons or waf build file from the compiler
configuration. I'm hoping to hook the artifacts the script creates back into
maven so that it can manage them. We have fairly simple build requirements
this far (i.e. a single platform) and internal knowledge of scons, hence
this scons approach over something like the NAR or native plugins. 

I completely agree about coupling the compiler to the project object, I
didn't like that approach from the beginning. I'll give the expressions
another try and hopefully that will give me what I need. Thanks for your
help.

rgds,

ste

Jason van Zyl-2 wrote:
> 
> 
> On 22-Apr-08, at 4:37 PM, sgargan wrote:
>>
>> Hi there,
>>
>> I've been playing around with developing a simple compiler. Its  
>> coming along
>> nicely, but for one thing. The configuration that gets passed to the
>> compiler instance is great, but not as complete as I would like.  
>> Ideally I
>> would like to have access to the MavenProject object at the compiler  
>> level
>> in order to grab the little bits of extra information I need. I'm  
>> wondering
>> if there is any way to have the complier injected with the Maven  
>> project,
>> similar to how the mojos are injected with dependencies, or via the  
>> plexus
>> container or otherwise?
>>
> 
> Coupling the compiler to a MavenProject is probably not a good idea.  
> Extract what you need using the expressions and pass them into you  
> component. Even if you are only using Maven it means that no one else  
> will be able to use the compiler outside the confines of Maven.
> 
> What kind of compiler are you making? Not similar to what we have now?
> 
>> Thanks in advance.
>>
>> regards,
>>
>> stephen
>> -- 
>> View this message in context:
>> http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16827294.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> Thanks,
> 
> Jason
> 
> ----------------------------------------------------------
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> ----------------------------------------------------------
> 
> To do two things at once is to do neither.
> 
> -—Publilius Syrus, Roman slave, first century B.C.
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16976065.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to