To avoid confusing prefix matching between patterns like vscode-boot-* and vscode-boot-properties-*, vscide-boot-java-* This would pontially cause weird version strings in concourse resources.
21 lines
687 B
Bash
Executable File
21 lines
687 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
|
|
|
|
# Use maven to build fat jar of the language server
|
|
cd ../../headless-services/boot-language-server
|
|
./build.sh
|
|
|
|
mkdir -p ${workdir}/jars
|
|
cp target/*.jar ${workdir}/jars/language-server.jar
|
|
|