You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Ala' Alkhaldi (JIRA)" <ji...@apache.org> on 2014/07/08 18:52:05 UTC
[jira] [Commented] (CASSANDRA-7517) Support starting of daemon from
within powershell
[ 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)