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

add -setProperty gwt compiler option #78

Merged
merged 2 commits into from
Oct 12, 2023

Conversation

chwalker-fadv
Copy link
Contributor

Adds the "-setProperty" parameter to the gwt compiler options. This partially addresses #4

@zbynek
Copy link
Contributor

zbynek commented Oct 11, 2023

@chwalker-fadv
Copy link
Contributor Author

Would be nice to also include the new option in https://github.com/jiakuan/gwt-gradle-plugin/blob/main/doc/setup/Configuration%20References.md

Good suggestion. Done

@@ -51,6 +52,11 @@ protected void addArgs() {
argIfEnabled(getDisableGeneratingOnShards(), "-XdisableGeneratingOnShards");

argIfSet("-optimize", getOptimize());

for (String property: getSetProperties()) {
Copy link
Owner

Choose a reason for hiding this comment

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

Is it possible that getSetProperties() is null?

Copy link
Owner

Choose a reason for hiding this comment

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

Looks like it's not as the setter won't be called if no such configuration exists

@@ -51,6 +52,11 @@ protected void addArgs() {
argIfEnabled(getDisableGeneratingOnShards(), "-XdisableGeneratingOnShards");

argIfSet("-optimize", getOptimize());

for (String property: getSetProperties()) {
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like it's not as the setter won't be called if no such configuration exists

@jiakuan jiakuan merged commit 28f1cc4 into jiakuan:main Oct 12, 2023
1 check passed
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.

3 participants