You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Kirk Lund (JIRA)" <ji...@apache.org> on 2016/11/15 00:38:58 UTC
[jira] [Commented] (GEODE-2104) GFSH parsing of options following
--J options are interpreted as part of the --J value
[ https://issues.apache.org/jira/browse/GEODE-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15665546#comment-15665546 ]
Kirk Lund commented on GEODE-2104:
----------------------------------
Adding these two tests to HyphenFormatterTest reproduces this bug:
{noformat}
@Test // GEODE-2104
public void optionAfterOneJOption2() {
String cmd = "start server --name=me3 --J=-Dgemfire.jmx-manager=true --http-service-port=8080";
String formattedCmd = this.formatter.formatCommand(cmd);
String expected = "start server --name=me3 --J=\"-Dgemfire.jmx-manager=true\" --http-service-port=8080";
assertThat(formattedCmd).as(cmd).isEqualTo(expected);
}
@Test // GEODE-2104
public void optionAfterTwoJOptions() {
String cmd = "start server --name=me3 --J=-Dgemfire.jmx-manager=true --J=-Dgemfire.jmx-manager-start=true --http-service-port=8080";
String formattedCmd = this.formatter.formatCommand(cmd);
String expected = "start server --name=me3 --J=\"-Dgemfire.jmx-manager=true\" --J=\"-Dgemfire.jmx-manager-start=true\" --http-service-port=8080";
assertThat(formattedCmd).as(cmd).isEqualTo(expected);
}
{noformat}
> GFSH parsing of options following --J options are interpreted as part of the --J value
> --------------------------------------------------------------------------------------
>
> Key: GEODE-2104
> URL: https://issues.apache.org/jira/browse/GEODE-2104
> Project: Geode
> Issue Type: Bug
> Components: management
> Affects Versions: 1.0.0-incubating
> Reporter: Kirk Lund
> Assignee: Kirk Lund
>
> GFSH parsing of options following --J options are interpreted as part of the --J value.
> $ start server --name=me3 --J=-Dgemfire.jmx-manager=true --J=-Dgemfire.jmx-manager-start=true --http-service-port=8080`
> In the above GFSH does not interpret the `http-service-port` option correctly. If you look in the log, the value for `gemfire.jmx-manager-start` is `true --http-service-port=8080`
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)