"org\\.eclipse\\.equinox\\.launcher_.*\\.jar$"
(file-name-nondirectory path))
(file-exists-p path))))
- (let* ((classpath (or (getenv "CLASSPATH") ":"))
- (cp-jar (cl-find-if #'is-the-jar (split-string classpath ":")))
+ (let* ((classpath (or (getenv "CLASSPATH") path-separator))
+ (cp-jar (cl-find-if #'is-the-jar (split-string classpath path-separator)))
(jar cp-jar)
(dir
(cond
(when (and interactive (not cp-jar)
(y-or-n-p (concat "Add path to the server program "
"to CLASSPATH environment variable?")))
- (setenv "CLASSPATH" (concat (getenv "CLASSPATH") ":" jar)))
+ (setenv "CLASSPATH" (concat (getenv "CLASSPATH") path-separator jar)))
(unless (file-directory-p workspace)
(make-directory workspace t))
(cons 'eglot-eclipse-jdt