[
https://issues.apache.org/jira/browse/FLINK-10515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17266130#comment-17266130
]
Matthias commented on FLINK-10515:
----------------------------------
[~vthinkxie] Can we implement the deprecated tokenization logic easily in the
web-frontend using JavaScript?
{code:java}
* tokenizeArguments("--foo bar") = ["--foo" "bar"]
* tokenizeArguments("--foo \"bar baz\"") = ["--foo" "bar baz"]
* tokenizeArguments("--foo 'bar baz'") = ["--foo" "bar baz"]
* tokenizeArguments(null) = [] {code}
It, more or less, uses double-quotes or single-quotes to group token together.
If yes, we could proceed with [~azagrebin]'s proposal as is and keep the
deprecated tokenization out of the Flink backend code.
> Improve tokenisation of program args passed as string
> -----------------------------------------------------
>
> Key: FLINK-10515
> URL: https://issues.apache.org/jira/browse/FLINK-10515
> Project: Flink
> Issue Type: Improvement
> Components: Runtime / REST
> Affects Versions: 1.7.0
> Reporter: Andrey Zagrebin
> Assignee: Matthias
> Priority: Major
>
> At the moment tokenisation of program args does not respect escape
> characters. It can be improved to support at least program args separated by
> spaces with unix style escaping.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)