Le samedi 29 mars 2008, Benjamin Bentmann a écrit :
> > The convention has to be shared between every plugin and the super POM. I
> > dislike the pure formal convention, that every plugin would copy/paste.
> > Coded as an API like "String checkSourceEncoding(String encoding)" method
> > to
> > AbstractMojo, that every plugin would call: "encoding =
> > checkSourceCodeEncoding(encoding)" is ok for me
>
> +1, on the general idea with the helper method to materialize the
> convention. I only fear that AbstractMojo is not a good candidate to host
> this method: AbstractMojo is part of the uber JAR and hence plugins cannot
> use a different version of this class until they increase their
> prerequisite on Maven to 2.0.10+.
oh yes, I forgot this.

> Maybe we could drop the method somewhere 
> into plexus-utils' ReaderFactory?
if such a method goes into plexus-utils, it has to be more generic.
checkDefaultEncoding?
Then the default value should be configurable, and not only hardcoded. But 
how?

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



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

Reply via email to