cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ala' Alkhaldi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7517) Support starting of daemon from within powershell
Date Tue, 08 Jul 2014 16:52:05 GMT

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

Ala' Alkhaldi commented on CASSANDRA-7517:
------------------------------------------

I get the following exception when I execute the script:
{code}
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
Parameter name: length"
At D:\Projects\cassandra\bin\cassandra.ps1:76 char:45
+         $Invocation.InvocationName.Substring <<<< (0,$Invocation.InvocationName.LastIndexOf("\"));
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
{code}
$Invocation.InvocationName returns "Main" instead of the full path to the bin folder

> Support starting of daemon from within powershell
> -------------------------------------------------
>
>                 Key: CASSANDRA-7517
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7517
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Joshua McKenzie
>            Assignee: Joshua McKenzie
>            Priority: Minor
>              Labels: Windows
>             Fix For: 2.1.0
>
>         Attachments: 7517_v1.txt
>
>
> Currently cassandra.ps1 doesn't work if run directly from within PowerShell and the use-case
seems pretty common.  Modify the script to work correctly without the .bat wrapper.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message