forked from eclipse-che4z/che-che4z-lsp-for-cobol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.sh
executable file
·63 lines (53 loc) · 1.37 KB
/
BUILD.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
#
# Copyright (c) 2024 Broadcom.
# The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Broadcom, Inc. - initial API and implementation
#
# Fail script if any command fails
set -e
# Echo commands as they are executed for better understanding
set -x
# Compile language server and dialect jars
cd server
mvn clean package --no-transfer-progress -Dmaven.test.skip
cd -
# Copy jars
cp server/dialect-daco/target/dialect-daco.jar clients/daco-dialect-support/server/jar
cp server/dialect-idms/target/dialect-idms.jar clients/idms-dialect-support/server/jar
cp server/engine/target/server.jar clients/cobol-lsp-vscode-extension/server/jar
# Compile dialect api
cd clients/cobol-dialect-api
npm ci
npm run compile
cd -
# Build COBOL LS extension
cd clients/cobol-lsp-vscode-extension
npm ci
npm run package
cd -
# Build IMDS LS extension
cd clients/idms-dialect-support
npm ci
npm run package
cd -
# Build DACO LS extension
cd clients/daco-dialect-support
npm ci
npm run package
cd -
# Build COBOL LS Web extension
cd clients/cobol-lsp-vscode-extension
npm ci
npm run build:web
cd -
# Done
echo "Done building COBOL LS"