raydac / java-comment-preprocessor

preprocessor for computer languages with C-like comment format (C/C++/Java/Go)
Apache License 2.0
172 stars 27 forks source link

Add a skip parameter to the preprocess goal #13

Closed htfv closed 7 years ago

htfv commented 7 years ago

Many Maven plugins have a skip parameter with an associated property to skip the execution. Having such parameter and property is convenient as it allows a) temporarily disabling plugin in command line by adding a -D option; b) configuring plugin in a parent POM and redefining a property in a child POM to change behavior (enable or disable execution).

Please add such parameter to the JCP Maven plugin.

I can create a pull request if it helps.

raydac commented 7 years ago

I have added boolean skip parameter which also can be set through property -Djcp.preprocess.skip=true to skip execution of plugin, just add

<skip>true</skip>
htfv commented 7 years ago

I tested it and it works. Thank you for quick response.