[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [buckminster-dev] Custom materialization of Maven artifacts
- From: Thomas Hallgren <thomas@xxxxxxx>
- Date: Thu, 26 Aug 2010 22:49:42 -0000
- Newsgroups: eclipse.tools.buckminster-dev
- Organization: EclipseCorner
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:220.127.116.11) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Lightning/1.0pre Thunderbird/3.0b3
You ask a very good question. Unfortunately, the answer is that you cannot do that yet. The only way to control
materialization selection is through name patterns in the mspec.
The way I would like to solve this is to expose some data from a resolution as properties and then allow filters in the
mspec nodes. The selected provider could for instance set properties for 'readerType' and 'source'. The 'componentType'
and other relevant information could also be set. An mspec node could then declare a filter instead of (or in addition
to) the pattern. Your example could then be declared as:
<mspecNode filter="(&(source=false)(componentType=<your type>))" materializer="<your materializer>" />
Would that be of help to you?
On 10/02/2009 11:20 PM, Steve Jerman wrote:
I am implementing some functionality for the Tigerstripe project which
downloads a Maven artifact from a repo based on a CQUERY and install it
into a 'special' place in the file system (which is relative to the
I have a custom component type and understand, I think, how to customize
the 'reader' side of things.
My question is how do I customize the materialization? I see there is an
extension point for materialization, so I assume I can define my own and
use the filesystem materializer as a template, but How do I say that
'this component should use this materializer for artifacts where
Thanks for any help.