Skip to content

Add a testPreprocess goal #14

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

Closed
htfv opened this issue Jan 24, 2017 · 2 comments
Closed

Add a testPreprocess goal #14

htfv opened this issue Jan 24, 2017 · 2 comments
Assignees

Comments

@htfv
Copy link

htfv commented Jan 24, 2017

Typical Maven plugins have separate goals for the main and test sources, for example compile and testCompile, resources and testResources. Having a testPreprocess goal bound to the generate-test-sources goal may greatly reduce configuration. The following

<executions>
    <execution>
        <id>preprocess-sources</id>
        <goals>
            <goal>preprocess</goal>
        </goals>
    </execution>
    <execution>
        <id>preprocess-test-sources</id>
        <configuration>
            <useTestSources>true</useTestSources>
        </configuration>
        <goals>
            <goal>preprocess</goal>
        </goals>
        <phase>generate-test-sources</phase>
    </execution>
</executions>

may be then replaced with

<executions>
    <execution>
        <goals>
            <goal>preprocess</goal>
            <goal>testPreprocess</goal>
        </goals>
    </execution>
</executions>

All existing properties may be supported, the testProcess goal may just have different defaults.

This is a minor improvement. I could create a pull request if you think that this feature has a value.

@raydac raydac self-assigned this Jan 24, 2017
raydac added a commit that referenced this issue Jan 24, 2017
…rint of imported maven properties moved into verbose and debug mode #14
@raydac
Copy link
Owner

raydac commented Jan 24, 2017

I made new goal preprocessTests which just provides true for useTestSources and processed in generate test source phase

@htfv
Copy link
Author

htfv commented Jan 25, 2017

Tested it and it works. Thank you for quick response.

@htfv htfv closed this as completed Jan 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants