[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] M2E Extension Development: Help
|
The get getMojoParameterValue() method gets the configured value of
the "sourceDirectory" parameter of the mojo [1]. Which is
${basedir}/src/main/antlr by default, but could have been configured
to something else by the user.
/Anders
[1] http://mojo.codehaus.org/antlr3-maven-plugin/antlr-mojo.html#sourceDirectory
On Mon, Oct 31, 2011 at 11:06, Francis ANDRE
<francis.andre.kampbell@xxxxxxxxx> wrote:
> Hi
>
>
>
> Can someone explain the following lines from the M2E Extension Development
>
>
>
> AntlrBuildParticipant generates java source files (any resources generated
> by ANTLR, to be precise) during eclipse incremental and full builds.
>
>
>
> File source = maven.getMojoParameterValue(getSession(),
> getMojoExecution(), "sourceDirectory", File.class);
>
> Scanner ds = buildContext.newScanner( source ); // delta or full
> scanner
>
> ds.scan();
>
> String[] includedFiles = ds.getIncludedFiles();
>
> if (includedFiles == null || includedFiles.length <= 0 )
>
> {
>
> return null;
>
> }
>
>
>
> The antlr3-maven-plugin takes the grammars to compile in the src/main/antlr3
> directory, thus I do not understand how updates of grammar's file can be
> check in the "sourceDirectory".
>
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users
>
>