On 3/31/07, Heinrich Nirschl <[EMAIL PROTECTED]> wrote:
On 3/31/07, Jason van Zyl <[EMAIL PROTECTED]> wrote:
>
> On 31 Mar 07, at 12:08 PM 31 Mar 07, Heinrich Nirschl wrote:
>
> > On 3/31/07, Jason van Zyl <[EMAIL PROTECTED]> wrote:
> >>
> >> On 31 Mar 07, at 10:07 AM 31 Mar 07, Raphaël Piéroni wrote:
> >>
> >> > Hi here comes a new proposition for the future descriptor.
> >> >
> >> > I made it the most simpler i can think.
> >> >
> >> > Please comment it.
> >> >
> >>
> >> I think it duplicates too much that's in the POM. The POM should be
> >> the model that used for Archetype wherever possible and an ancillary
> >> model should only be used where absolutely necessary. But as far as
> >> any sources, resources and any filtering what is done in the POM for
> >> the Archetype project is how the prototype generated from that
> >> Archetype should end up.
> >
> > I don't think it is feasible in all cases to take out the information
> > from the pom.
>
> I didn't say in all cases.
>
> > For example, the archetype author may want to put some
> > resources into the specified package, while others have already the
> > correct place. The pom does not allow to express this.
>
> Sorry, I don't grok this sentence. Give me an example.

Some resources should have an absolute position in the classpath, an
example being log4j.properties which is normally in the root of the
classpath (default package).
Other resources, like for example hibernate mappings, should be in the
same package as the class they belong to.
This means, in an archetype it must be possible to control which
resource files get prefixed by the package and which don't. It is
hard, if not impossible, to make the decision automatically.


exactly this is a showstopper for me in the current archetype when I
attempted to create an archetype for netbeans module development. I
need to place Bundle.properties and layer.xml file in resources into
the proper package.

Milos

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

Reply via email to