On 1/14/06, Brett Porter <[EMAIL PROTECTED]> wrote:
> > And yet... all the methods you're calling on docletArtifact look like
> > the ones from the Artifact interface. I'm lost. How does this work?
>
> There is no plexus configuration handler for the "Artifact" type.
Not to mention that it's an interface, so instantiating it would be
pretty difficult.
> You need to create your own class in the same package as the plugin with
> the given fields. Sorry I omitted that information :)
No problem... though it does seem like duplication, I think because
DefaultArtifact exists. But this isn't really _the_ Artifact, it's
just a container for the properties that will be used to create it. I
think. (First plugin... still trying to figure this all out.)
One more question. Your factory.createArtifact(...) call is missing
the 'scope' parameter. Do I just hard-code it like the type?
Artifact artifact = factory.createArtifact( docletArtifact.getGroupId(),
docletArtifact.getArtifactId(),
docletArtifact.getVersion(), "compile", "jar" );
Thanks. I suppose you're going to want to see a patch after doing all
this work. :)
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]