Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Scanning for changed files in a m2e compatible Maven plugin

I have asked a similar question some time ago...

This was a show stopper for me as I got some negative feedbacks on the solution I chose.

Igor, using BuildContext in this case will change the plugin behavior as it always returns true
when in command-line.

-

p


On 08/02/2012 11:22 AM, Anders Hammar wrote:
I'm trying to make the JAXB Maven Plugin of Codehaus Mojo compatible
with m2e as outlined in [1].

I'd like the plugin to skip execution when there are no changes to the
sources even when run from command-line (which there is already
support). Hoping to be able to use the BuildContext features for this,
I see that the DefaultBuildContext implementation does not support
this (it will always say all files are newly created).

So, my question is, do I need to implement two different code logics
to decide if the sources have changed? I.e., when
BuildContext.isIncremental() returns true I can use BuildContext, but
when it returns false I have to implement some other logic.

/Anders

[1] http://wiki.eclipse.org/M2E_compatible_maven_plugins
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-dev


Back to the top