directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiajia Li (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRKRB-407) Fix tool's usage in windows
Date Mon, 14 Sep 2015 05:37:45 GMT

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

Jiajia Li updated DIRKRB-407:
-----------------------------
    Attachment: DIRKRB-407-V1.patch

Print the right usage in windows env.

> 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)

Mime
View raw message