Unfortunately, I do not believe there is a good way to do this. The old Plexus BuildContext API is insufficient to support incremental build correctly. It does not delete obsolete output files when corresponding sources are deleted, for example. Nor it handles plugin configuration changes... nor plugin classpath.
Takari Incremental Build library is little better and can be used to implement correct incremental build behaviour, but it is very difficult to use correctly. -- Regards, Igor On Mon, Sep 26, 2016, at 10:06 AM, Konrad Windszus wrote: > Basically just parsing some files below a root directory, considering > both includes and excludes supporting some globbing. Therefore I would > like to leverage > https://maven.apache.org/shared/file-management/apidocs/org/apache/maven/shared/model/fileset/util/FileSetManager.html#getIncludedFiles(org.apache.maven.shared.model.fileset.FileSet), > but the question is how to use that together with the BuildContext (to > also consider only modified files in my IDE). > > >> On 26 Sep 2016, at 15:53, Igor Fedorenko <[email protected]> wrote: >> >> What are you trying to achieve? >> >> -- >> Regards, >> Igor >> >> >> On Mon, Sep 26, 2016, at 09:32 AM, Konrad Windszus wrote: >>> The recommended documented way of dealing with Files inside your >>> Mojo is using a FileSet >>> http://maven.apache.org/shared/file-management/examples/mojo.html >>> and https://maven.apache.org/shared/file-management/fileset.html) >>> Unfortunately the BuildContext.newScanner does not directly take a >>> FileSet as parameter. Is there any specific reason, why such a >>> method was not added in the first place? >>> What is your recommended way of parameterise some File parsing >>> capabilities in your Mojo. Do you recommend using FileSets or >>> explicit include/exclude and rootFolder parameters? >>> Thanks for your input >>> Konrad >>> _________________________________________________ >>> m2e-users mailing list >>> [email protected] >>> To change your delivery options, retrieve your password, or >>> unsubscribe from this list, visit >>> https://dev.eclipse.org/mailman/listinfo/m2e-users >> >> _______________________________________________ >> m2e-users mailing list >> [email protected] >> To change your delivery options, retrieve your password, or >> unsubscribe from this list, visit >> https://dev.eclipse.org/mailman/listinfo/m2e-users > _________________________________________________ > m2e-users mailing list > [email protected] > To change your delivery options, retrieve your password, or > unsubscribe from this list, visit > https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________ m2e-users mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/m2e-users
