[ 
https://issues.apache.org/jira/browse/TINKERPOP-1951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cédric L. Charlier updated TINKERPOP-1951:
------------------------------------------
    Description: 
If you copy the TinkerPop Gremlin Server to the folder
{noformat}
C:\Program Files\Apache TinkerPop\Server
{noformat}
then it would be impossible to start the server with the gremlin.bat file 
provided with the solution.

The issue is that the spaces of the folder name will not be correctly handled 
when defining the CLASSPATH.

It's possible to easily fix this issue by replacing the line
{code:java}
java -Dlog4j.configuration=conf/log4j-server.properties %JAVA_OPTIONS% 
%JAVA_ARGS% -cp %LIBDIR%\*;%EXTDIR%; 
org.apache.tinkerpop.gremlin.server.GremlinServer %*
{code}
by
{code:java}
java -Dlog4j.configuration=conf/log4j-server.properties %JAVA_OPTIONS% 
%JAVA_ARGS% -cp "%LIBDIR%\*;%EXTDIR%;" 
org.apache.tinkerpop.gremlin.server.GremlinServer %*
{code}
(the value provided for the -cp argument must be surrounded by double quotes).

Same case a few lines bellow this occurrence with

java -Dlog4j.configuration=conf/log4j-server.properties %JAVA_OPTIONS% 
%JAVA_ARGS% -cp %LIBDIR%\*;%EXTDIR%; 
org.apache.tinkerpop.gremlin.server.util.GremlinServerInstall %RESTVAR%

to be replaced by

java -Dlog4j.configuration=conf/log4j-server.properties %JAVA_OPTIONS% 
%JAVA_ARGS% -cp "%LIBDIR%\*;%EXTDIR%;" 
org.apache.tinkerpop.gremlin.server.util.GremlinServerInstall %RESTVAR%

 

  was:
If you copy the TinkerPop Gremlin Server to the folder
{noformat}
C:\Program Files\Apache TinkerPop\Server
{noformat}
then it would be impossible to start the server with the gremlin.bat file 
provided with the solution.

The issue is that the spaces of the folder name will not be correctly handled 
when defining the CLASSPATH.

It's possible to easily fix this issue by replacing the line
{code:java}
java %JAVA_OPTIONS% %JAVA_ARGS% -cp %LIBDIR%\*;%EXTDIR%; 
org.apache.tinkerpop.gremlin.console.Console %*
{code}
by
{code:java}
java %JAVA_OPTIONS% %JAVA_ARGS% -cp "%LIBDIR%\*;%EXTDIR%;" 
org.apache.tinkerpop.gremlin.console.Console %*
{code}
(the value provided for the -cp argument must be surrounded by double quotes).


> gremlin-server.bat doesn't support paths containing spaces
> ----------------------------------------------------------
>
>                 Key: TINKERPOP-1951
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1951
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: console
>    Affects Versions: 3.3.0
>         Environment: Windows operating system
>            Reporter: Cédric L. Charlier
>            Assignee: Robert Dale
>            Priority: Trivial
>             Fix For: 3.2.7, 3.3.1
>
>
> If you copy the TinkerPop Gremlin Server to the folder
> {noformat}
> C:\Program Files\Apache TinkerPop\Server
> {noformat}
> then it would be impossible to start the server with the gremlin.bat file 
> provided with the solution.
> The issue is that the spaces of the folder name will not be correctly handled 
> when defining the CLASSPATH.
> It's possible to easily fix this issue by replacing the line
> {code:java}
> java -Dlog4j.configuration=conf/log4j-server.properties %JAVA_OPTIONS% 
> %JAVA_ARGS% -cp %LIBDIR%\*;%EXTDIR%; 
> org.apache.tinkerpop.gremlin.server.GremlinServer %*
> {code}
> by
> {code:java}
> java -Dlog4j.configuration=conf/log4j-server.properties %JAVA_OPTIONS% 
> %JAVA_ARGS% -cp "%LIBDIR%\*;%EXTDIR%;" 
> org.apache.tinkerpop.gremlin.server.GremlinServer %*
> {code}
> (the value provided for the -cp argument must be surrounded by double quotes).
> Same case a few lines bellow this occurrence with
> java -Dlog4j.configuration=conf/log4j-server.properties %JAVA_OPTIONS% 
> %JAVA_ARGS% -cp %LIBDIR%\*;%EXTDIR%; 
> org.apache.tinkerpop.gremlin.server.util.GremlinServerInstall %RESTVAR%
> to be replaced by
> java -Dlog4j.configuration=conf/log4j-server.properties %JAVA_OPTIONS% 
> %JAVA_ARGS% -cp "%LIBDIR%\*;%EXTDIR%;" 
> org.apache.tinkerpop.gremlin.server.util.GremlinServerInstall %RESTVAR%
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to