diff options
Diffstat (limited to 'installer')
-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 |