Files
spring-tools/vscode-extensions/vscode-spring-boot/scripts/preinstall.sh
Kris De Volder 6f2b8be802 Split jdt ls extension into two parts
One pugin to contain the bulk of the code, which is independent of jdt.ls, lsp4e and lsp4j.
Second plugin to contain the jdt.ls specific DelegateCommandHandler implementation.

This should allow us to somehow re-use the bulk of the code in STS4 eclipse, i.e. when
we have access to JDT from eclipse directly, and there is no jdt.ls process around.
2018-04-16 14:24:42 -07:00

29 lines
1013 B
Bash
Executable File

#!/bin/bash
set -e
workdir=`pwd`
# Preinstall commons-vscode package
(cd ../commons-vscode ; npm install ; npm pack)
npm install ../commons-vscode/*-commons-vscode-*.tgz
# Copy grammar files for .properties and .yml format
curl https://raw.githubusercontent.com/textmate/yaml.tmbundle/master/Syntaxes/YAML.tmLanguage > yaml-support/yaml.tmLanguage
curl https://raw.githubusercontent.com/textmate/java.tmbundle/master/Syntaxes/JavaProperties.plist > properties-support/java-properties.tmLanguage
# Clean old jars
rm -fr ${workdir}/jars
mkdir -p ${workdir}/jars
# Use maven to build jdt ls extension
cd ../../headless-services/jdt-ls-extension
../mvnw clean package
cp org.springframework.tooling.jdt.ls.extension/target/*.jar ${workdir}/jars/jdt-ls-extension.jar
cp org.springframework.tooling.jdt.ls.commons/target/*.jar ${workdir}/jars/jdt-ls-commons.jar
# Use maven to build fat jar of the language server
cd ../../headless-services/spring-boot-language-server
./build.sh
cp target/*.jar ${workdir}/jars