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

Support proper capsule.jvm.args parsing #106

Merged
merged 6 commits into from
Jul 24, 2016

Conversation

aalberti
Copy link
Contributor

Capsule now parses capsule.jvm.args as command line arguments.
It escapes quoted, double quoted parameters,
and characters escaped by \

Antoine Alberti added 2 commits July 12, 2016 15:00
By forcing unix format in jimfs.
Not all tests pass on Windows, but some do, now.

Change-Id: If55e477411dd80b690d450621d9731240e3b6169
Capsule now parses capsule.jvm.args as command line arguments.
It escapes quoted, double quoted parameters,
and characters escaped by \

Change-Id: Ic1de246df1f4ba1a6de0017ebc06055638e55485
@coveralls
Copy link

coveralls commented Jul 12, 2016

Coverage Status

Coverage increased (+0.4%) to 60.021% when pulling 2f6aeae on aalberti:jvm-args-parsing into 2b9a20c on puniverse:master.

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oupsie, didn't see that. Should I fix it?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, please :)

@aalberti
Copy link
Contributor Author

OK, I'll do that. In the meantime, I realized I left the company git script that adds a ChangeId to all commit messages (for gerrit). Do you prefer me to add commits with this change id, of rebase the whole chain?

@coveralls
Copy link

coveralls commented Jul 18, 2016

Coverage Status

Coverage increased (+0.4%) to 60.021% when pulling 6274014 on aalberti:jvm-args-parsing into 2b9a20c on puniverse:master.

@pron
Copy link
Contributor

pron commented Jul 18, 2016

Cool, thanks! Does it work on Windows? Do you have any reason to suspect why it might not?

@aalberti
Copy link
Contributor Author

You're right, using \ as an escape char is not a good idea on windows... I'm working on it. I might revert this whole addition to ant's cmd line parser, if I don't find a simple clever idea.

Because it's a bad idea to consider '\' as an escaping char
on windows.
@coveralls
Copy link

coveralls commented Jul 19, 2016

Coverage Status

Coverage increased (+0.4%) to 59.968% when pulling f8e0a93 on aalberti:jvm-args-parsing into 2b9a20c on puniverse:master.

@aalberti
Copy link
Contributor Author

Unless you have additional comment, I'm considering it done.... and if you agree, I'm gonna need a 1.0.3 release ;)

@pron pron merged commit 9465216 into puniverse:master Jul 24, 2016
@aalberti
Copy link
Contributor Author

Just quickly tested our product with capsule 1.0.3-SNAPSHOT, and it works fine for me. When are you planning a 1.0.3 release?

@pron
Copy link
Contributor

pron commented Jul 29, 2016

Next week.

@aalberti
Copy link
Contributor Author

aalberti commented Aug 1, 2016

Thanks a lot. Looking forward to it

@pron
Copy link
Contributor

pron commented Aug 4, 2016

Released.

jonas-l added a commit to jonas-l/gradle-capsule-plugin that referenced this pull request May 3, 2017
This is trivial implementation. It does not support [escaped spaces][1].

[1]: puniverse/capsule#106
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