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:35:04 UTC

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

    [ https://issues.apache.org/jira/browse/DIRKRB-407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14903782#comment-14903782 ] 

Jiajia Li commented on DIRKRB-407:
----------------------------------

commit 675e792e1b65d753a8f5ec4ca92dc78f7d6d0290
Author: plusplusjiajia <ji...@intel.com>
Date:   Wed Sep 23 09:39:19 2015 +0800

    DIRKRB-407 Fix tool's usage in windows

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