这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@WolfEkk

Description

@WolfEkk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions