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

Bootstrap Maven: support for MAVEN_OPTS and properties with whitespaces #12013

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

aloubyansky
Copy link
Member

Fixes #11819
Fixes #11467

@metacosm fyi, I took a bit of a different approach here.

@aloubyansky
Copy link
Member Author

@gsmet fyi, with this one you won't have to add -Dmaven.repo.local=xxx to the command line.

@metacosm
Copy link
Contributor

metacosm commented Sep 11, 2020

@aloubyansky whatever you think is best. Should I close my PR, then?

@aloubyansky
Copy link
Member Author

@metacosm i think so, given that this one covers your issue plus another one.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Added 2 questions.

for (Object o : userProps.keySet()) {
String name = o.toString();
final String value = userProps.getProperty(name);
buf.setLength(2);
Copy link
Member

Choose a reason for hiding this comment

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

Should this go away?

Copy link
Member Author

Choose a reason for hiding this comment

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

No. What made you question that?

buf.append(name);
if (value != null && !value.isEmpty()) {
buf.append('=');
buf.append(value);
Copy link
Member

Choose a reason for hiding this comment

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

We don't need to escape the values? They will be escaped?

Copy link
Member Author

Choose a reason for hiding this comment

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

It should work. This PR includes a devmode test passing a system property with a value containing whitespaces using -D.

@gsmet gsmet merged commit b531eaf into quarkusio:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants