You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "James Howe (JIRA)" <ji...@apache.org> on 2017/04/25 14:28:04 UTC
[jira] [Created] (CASSANDRA-13473) Missing quotes in
cassandra-env.ps1
James Howe created CASSANDRA-13473:
--------------------------------------
Summary: Missing quotes in cassandra-env.ps1
Key: CASSANDRA-13473
URL: https://issues.apache.org/jira/browse/CASSANDRA-13473
Project: Cassandra
Issue Type: Bug
Components: Configuration
Reporter: James Howe
Priority: Minor
Cannot start Cassandra on Windows via Powershell if the configuration path contains spaces.
{noformat}
diff --git a/conf/cassandra-env.ps1 b/conf/cassandra-env.ps1
index 806eabc..c2765f8 100644
--- a/conf/cassandra-env.ps1
+++ b/conf/cassandra-env.ps1
@@ -376,9 +376,9 @@ Function SetCassandraEnvironment
}
}
- # provides hints to the JIT compiler
- $env:JVM_OPTS = "$env:JVM_OPTS -XX:CompileCommandFile=$env:CASSANDRA_CONF\hotspot_compiler"
-
+ # provides hints to the JIT compiler
+ $env:JVM_OPTS = "$env:JVM_OPTS -XX:CompileCommandFile=""$env:CASSANDRA_CONF\hotspot_compiler"""
+
# add the jamm javaagent
if (($env:JVM_VENDOR -ne "OpenJDK") -or ($env:JVM_VERSION.CompareTo("1.6.0") -eq 1) -or
(($env:JVM_VERSION -eq "1.6.0") -and ($env:JVM_PATCH_VERSION.CompareTo("22") -eq 1)))
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)