File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 123
123
@static is_windows () ? (const sep = " ;" ) : nothing
124
124
cp= Array (String, 0 )
125
125
opts= Array (String, 0 )
126
- addClassPath (s:: String ) = isloaded ()?warn (" JVM already initialised. This call has no effect" ): push! (cp, s)
126
+
127
+ function addClassPath (s:: String )
128
+ if isloaded ()
129
+ warn (" JVM already initialised. This call has no effect" )
130
+ return
131
+ end
132
+ if s== " " ; return ; end
133
+ if endswith (s, " /*" )
134
+ for x in s[1 : end - 1 ] .* readdir (s[1 : end - 2 ])
135
+ if endswith (x, " .jar" )
136
+ push! (cp, x)
137
+ end
138
+ end
139
+ return
140
+ end
141
+ push! (cp, s)
142
+ return
143
+ end
144
+
127
145
addOpts (s:: String ) = isloaded ()?warn (" JVM already initialised. This call has no effect" ): push! (opts, s)
128
146
129
147
function init ()
You can’t perform that action at this time.
0 commit comments