Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation improvement: Optional parameters sources and targetSources sample code #17

Open
WolfEkk opened this issue Jun 29, 2016 · 0 comments

Comments

@WolfEkk
Copy link

WolfEkk commented Jun 29, 2016

The optional parameters 'sources' and 'testSources' documentation for the compile and test-compile goals (respectively) might be incomplete, the text implies that includes and excludes might be specified, yet there are no hints on how that can be accomplished. One alternative I found to work is (covers my use case).:

<testSources>
    <source>
        <basedir>src/test/java/</basedir>
    </source>
</testSources>

It took me sometime to figure it out, perhaps an example can be provided where the syntax is shown. I must say I first assumed a structure like <testSources><includes><include>some/**/expression</... by analogy from other parameters example code.

I'm guessing the includes and excludes can be leveraged directly inside <source>... using something along the lines of <dirsExcluded>, <dirsIncluded>, etc. as per the structure of DirectoryScanner, but I'm not really familiar with the mechanisms by which configuration parameters are converted inside maven plugins.

Perhaps the documentation can be complemented by someone fully familiar with the possibilities.

Links to the related documentation:
@ http://www.mojohaus.org/aspectj-maven-plugin/test-compile-mojo.html#testSources

Set the java test source folders to use, specifying the includes and excludes.

and
@ http://www.mojohaus.org/aspectj-maven-plugin/compile-mojo.html#sources

Set the java source folders to use, specifying the includes and excludes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant