forked from orientechnologies/orientdb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgremlin.bat
More file actions
94 lines (36 loc) · 890 Bytes
/
gremlin.bat
File metadata and controls
94 lines (36 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
:: Windows launcher script for Gremlin
@echo off
::cd ..\lib
::set LIBDIR=%CD%
set LIBDIR=..\lib
set CP=
for %%i in (%LIBDIR%\*.jar) do call :concatsep %%i
:: cd ..\..\..\
set JAVA_OPTIONS=-Xms32M -Xmx512M
:: Launch the application
if "%1" == "" goto console
if "%1" == "-e" goto script
if "%1" == "-v" goto version
:console
java %JAVA_OPTIONS% %JAVA_ARGS% -cp %CP% com.tinkerpop.gremlin.groovy.console.Console
goto :eof
:script
set strg=
FOR %%X IN (%*) DO (
CALL :concat %%X %1 %2
)
java %JAVA_OPTIONS% %JAVA_ARGS% -cp %CP% com.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine %strg%
goto :eof
:version
java %JAVA_OPTIONS% %JAVA_ARGS% -cp %CP% com.tinkerpop.gremlin.Version
goto :eof
:concat
if %1 == %2 goto skip
SET strg=%strg% %1
:concatsep
if "%CP%" == "" (
set CP=%LIBDIR%\%1
)else (
set CP=%CP%;%LIBDIR%\%1
)
:skip