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

issue-104: skipJspc property (4.x branch) #108

Merged
merged 2 commits into from
Dec 20, 2022

Conversation

knoxg
Copy link
Contributor

@knoxg knoxg commented Dec 18, 2022

This PR will allow the plugin to be skipped by specifying <skipJspc>true</skipJspc> in the <configuration> block, or by supplying -Djspc.skip on the commandline.

@knoxg knoxg mentioned this pull request Dec 18, 2022
* Set this to 'true' to bypass compilation of JSP sources.
*/
@Parameter(defaultValue = "false", property = "jspc.skip")
private boolean skipJspc;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private boolean skipJspc;
private boolean skip;

I think we can leave out the jspc part which you can derive form the context.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep ok will update

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

}
if ( skipJspc ) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if ( skipJspc ) {
if ( skip ) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Owner

@leonardehrenfried leonardehrenfried left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good but we can leave out the jsp part from the variable name.

Thanks for the PR!

@knoxg
Copy link
Contributor Author

knoxg commented Dec 20, 2022

ok have made the suggested changes above ( and to the other PR if we end up creating a 3.x branch )

@leonardehrenfried leonardehrenfried merged commit 4ccdee0 into leonardehrenfried:master Dec 20, 2022
@leonardehrenfried
Copy link
Owner

This code has been released as version 4.0.1. Give it a few minutes to show up on Maven Central: https://repo1.maven.org/maven2/io/leonard/maven/plugins/jspc-maven-plugin/

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

Successfully merging this pull request may close these issues.

2 participants