aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-30 19:07:31 +0900
committerYasuhiro Matsumoto <mattn.jp@gmail.com>2020-01-30 19:07:31 +0900
commit8a75f94bbbf2e2a0574883a61f0ef04bc5855c33 (patch)
tree705931f256c60d7cd51267e3906316c941c42eca /installer
parentee0028e82fdcd656bc8400ca354f12ff8ff1fc3e (diff)
downloadvim-lsp-settings-8a75f94bbbf2e2a0574883a61f0ef04bc5855c33.tar.gz
vim-lsp-settings-8a75f94bbbf2e2a0574883a61f0ef04bc5855c33.tar.bz2
vim-lsp-settings-8a75f94bbbf2e2a0574883a61f0ef04bc5855c33.zip
Fix configDir of eclipse-jdt-ls
Fixes #123
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/install-eclipse-jdt-ls.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/installer/install-eclipse-jdt-ls.sh b/installer/install-eclipse-jdt-ls.sh
index 7a99874..86528d9 100755
--- a/installer/install-eclipse-jdt-ls.sh
+++ b/installer/install-eclipse-jdt-ls.sh
@@ -7,12 +7,19 @@ curl -o lombok.jar 'https://projectlombok.org/downloads/lombok.jar'
tar xvf jdt-language-server-latest.tar.gz
rm jdt-language-server-latest.tar.gz
+osType="\$(uname -s)"
+case "\${osType}" in
+ Darwin*) configDir=config_mac;;
+ Linux*) configDir=config_linux;;
+ *) configDir=config_linux
+esac
+
cat <<EOF > eclipse-jdt-ls
#!/usr/bin/env bash
DIR=\$(cd \$(dirname \$0); pwd)
LAUNCHER=\$(ls \$DIR/plugins/org.eclipse.equinox.launcher_*.jar)
-java -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.protocol=true -Dlog.level=ALL -noverify -Xmx1G -javaagent:\$DIR/lombok.jar -Xbootclasspath/a:\$DIR/lombok.jar -jar \$LAUNCHER -configuration \$DIR/config_linux -data \$DIR/data
+java -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dlog.protocol=true -Dlog.level=ALL -noverify -Xmx1G -javaagent:\$DIR/lombok.jar -Xbootclasspath/a:\$DIR/lombok.jar -jar \$LAUNCHER -configuration \$DIR/$configDir -data \$DIR/data
EOF
chmod +x eclipse-jdt-ls