[
https://issues.apache.org/jira/browse/DIRKRB-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jiajia Li updated DIRKRB-407:
-----------------------------
Description:
Now the tool's usage in windows is "bin/start-kdc.cmd", it should be changed to
"bin\start-kdc.cmd".
And because of missing the brackets lead to can't print all usage.
{{code}}
String USAGE = OSUtil.isWindows()
? "Usage: bin/start-kdc.cmd" : "Usage: sh bin/start-kdc.sh"
+ " [conf-dir] [working-dir] \n"
+ "\tExample:\n"
+ "\t\tsh bin/start-kdc.sh conf runtime\n";
{{code}}
should be:
{{code}}
String USAGE = (OSUtil.isWindows()
? "Usage: bin\start-kdc.cmd" : "Usage: sh bin/start-kdc.sh")
+ " [conf-dir] [working-dir] \n"
+ "\tExample:\n"
+ "\t\t(OSUtil.isWindows() ?"bin\start-kdc.cmd" :"sh
bin/start-kdc.sh") conf runtime\n";
{{code}}
> Fix tool's usage in windows
> ---------------------------
>
> Key: DIRKRB-407
> URL: https://issues.apache.org/jira/browse/DIRKRB-407
> Project: Directory Kerberos
> Issue Type: Bug
> Affects Versions: 1.0.0-RC2
> Reporter: Jiajia Li
> Assignee: Jiajia Li
>
> Now the tool's usage in windows is "bin/start-kdc.cmd", it should be changed
> to "bin\start-kdc.cmd".
> And because of missing the brackets lead to can't print all usage.
> {{code}}
> String USAGE = OSUtil.isWindows()
> ? "Usage: bin/start-kdc.cmd" : "Usage: sh bin/start-kdc.sh"
> + " [conf-dir] [working-dir] \n"
> + "\tExample:\n"
> + "\t\tsh bin/start-kdc.sh conf runtime\n";
> {{code}}
> should be:
> {{code}}
> String USAGE = (OSUtil.isWindows()
> ? "Usage: bin\start-kdc.cmd" : "Usage: sh bin/start-kdc.sh")
> + " [conf-dir] [working-dir] \n"
> + "\tExample:\n"
> + "\t\t(OSUtil.isWindows() ?"bin\start-kdc.cmd" :"sh
> bin/start-kdc.sh") conf runtime\n";
> {{code}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)