diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-16 00:51:04 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-16 00:51:04 +0900 |
commit | 3263080c5cf53c0375d01cb2060aa7f5ec15be51 (patch) | |
tree | 4127f21e0081f5554732429eb976f3163f02108c | |
parent | 4985bebb726c3d7f1eec0edd6a1524250864eabb (diff) | |
download | vim-lsp-settings-3263080c5cf53c0375d01cb2060aa7f5ec15be51.tar.gz vim-lsp-settings-3263080c5cf53c0375d01cb2060aa7f5ec15be51.tar.bz2 vim-lsp-settings-3263080c5cf53c0375d01cb2060aa7f5ec15be51.zip |
Add installer for eclipse-jdt-ls
-rwxr-xr-x | installer/install-eclipse-jdt-ls.cmd | 2 | ||||
-rwxr-xr-x | installer/install-eclipse-jdt-ls.sh | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/installer/install-eclipse-jdt-ls.cmd b/installer/install-eclipse-jdt-ls.cmd index ac53a92..569de2a 100755 --- a/installer/install-eclipse-jdt-ls.cmd +++ b/installer/install-eclipse-jdt-ls.cmd @@ -15,7 +15,7 @@ setlocal enabledelayedexpansion ^ cd %%~dp0 ^
-for %%%%F in (plugins/org.eclipse.equinox.launcher*.jar) do ( ^
+for %%%%F in (plugins/org.eclipse.equinox.launcher*win32*.jar) do ( ^
set launcher=plugins/%%%%F ^
diff --git a/installer/install-eclipse-jdt-ls.sh b/installer/install-eclipse-jdt-ls.sh new file mode 100755 index 0000000..f0cc9a5 --- /dev/null +++ b/installer/install-eclipse-jdt-ls.sh @@ -0,0 +1,21 @@ +#!/bin/bash +@echo off + +cd $(dirname $0) +[ -d ../servers/eclipse-jdt-ls ] && rm -rf ../servers/eclipse-jdt-ls +mkdir ../servers/eclipse-jdt-ls +cd ../servers/eclipse-jdt-ls +curl -o jdt-language-server-latest.tar.gz 'http://download.eclipse.org/jdtls/snapshots/jdt-language-server-latest.tar.gz' +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 + +cat <<EOF > eclipse-jdt-ls +#!/bin/sh + +cd \$(dirname \$0) +LAUNCHER=$(ls ./plugins/org.eclipse.equinox.launcher*linux*.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:./lombok.jar -Xbootclasspath/a:./lombok.jar -jar \$LAUNCHER -configuration ./config_linux -data ./data +EOF + +chmod +x eclipse-jdt-ls |