You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Jiajia Li (JIRA)" <ji...@apache.org> on 2015/09/23 03:36:04 UTC

[jira] [Resolved] (DIRKRB-407) Fix tool's usage in windows

     [ https://issues.apache.org/jira/browse/DIRKRB-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jiajia Li resolved DIRKRB-407.
------------------------------
    Resolution: Fixed

> 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
>         Attachments: DIRKRB-407-V1.patch
>
>
> 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)