(Windows) handle spaces in path names

patch by Josh McKenzie; reviewed by Jorge Bay for CASSANDRA-7451
This commit is contained in:
Jonathan Ellis 2014-06-27 11:07:47 -05:00
parent bd6a766f98
commit b8ee9da1e8
4 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
2.1.0
* (Windows) handle spaces in path names (CASSANDRA-7451)
Merged from 2.0:
* Fix CC#collectTimeOrderedData() tombstone optimisations (CASSANDRA-7394)
* Support DISTINCT for static columns and fix behaviour when DISTINC is

View File

@ -35,7 +35,7 @@ goto runLegacy
REM -----------------------------------------------------------------------------
:runPowerShell
echo Detected powershell execution permissions. Running with enhanced startup scripts.
powershell /file %CASSANDRA_HOME%\bin\cassandra.ps1 %*
powershell /file "%CASSANDRA_HOME%\bin\cassandra.ps1" %*
goto finally
REM -----------------------------------------------------------------------------

View File

@ -79,7 +79,7 @@ Function Main
$logdir = "$env:CASSANDRA_HOME/logs"
$storagedir = "$env:CASSANDRA_HOME/data"
$env:CASSANDRA_PARAMS = $env:CASSANDRA_PARAMS + " -Dcassandra.logdir=$logdir -Dcassandra.storagedir=$storagedir"
$env:CASSANDRA_PARAMS = $env:CASSANDRA_PARAMS + " -Dcassandra.logdir=""$logdir"" -Dcassandra.storagedir=""$storagedir"""
# Other command line params
if ($H)

View File

@ -39,7 +39,7 @@ Function SetCassandraMain()
#-----------------------------------------------------------------------------
Function BuildClassPath
{
$cp = "$env:CASSANDRA_HOME\conf"
$cp = """$env:CASSANDRA_HOME\conf"""
foreach ($file in Get-ChildItem "$env:CASSANDRA_HOME\lib\*.jar")
{
$file = $file -replace "\\", "/"
@ -47,7 +47,7 @@ Function BuildClassPath
}
# Add build/classes/main so it works in development
$cp = $cp + ";" + "$env:CASSANDRA_HOME\build\classes\main;$env:CASSANDRA_HOME\build\classes\thrift"
$cp = $cp + ";" + """$env:CASSANDRA_HOME\build\classes\main"";""$env:CASSANDRA_HOME\build\classes\thrift"""
$env:CLASSPATH=$cp
}