Class Shlex
java.lang.Object
io.github.ascopes.protobufmavenplugin.utils.Shlex
Shell/batch file quoting.
Losely based on Python's shlex
module.
This is far from perfect but should work in the majority of use cases to ensure scripts do not interpret special characters in paths in strange and unexpected ways.
Long lines will be split up with line continuations.
- Author:
- Ashley Scopes
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
quoteBatchArgs
(Iterable<String> args) static String
quoteShellArgs
(Iterable<String> args)
-
Method Details
-
quoteShellArgs
-
quoteBatchArgs
-