Skip to content

Commit b22b750

Browse files
committed
Bazel: add patch to extract .jar files with jar command
1 parent d7f96a1 commit b22b750

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Use the jar command to extract .jar files
2+
author: Alex Domingo (Vrije Universiteit Brussel)
3+
--- a/scripts/bootstrap/compile.sh 1980-01-01 00:00:00.000000000 +0100
4+
+++ b/scripts/bootstrap/compile.sh 2021-01-18 01:18:11.059282344 +0100
5+
@@ -124,9 +124,12 @@
6+
-encoding UTF-8 ${BAZEL_JAVAC_OPTS} "@${paramfile}"
7+
8+
log "Extracting helper classes for $name..."
9+
+ library_jars_dir=$(pwd)
10+
+ cd "${output}/classes"
11+
for f in ${library_jars} ; do
12+
- run unzip -qn ${f} -d "${output}/classes"
13+
+ run "$JAR" xf ${library_jars_dir}/${f}
14+
done
15+
+ cd ${library_jars_dir}
16+
}
17+
18+
# Create the deploy JAR

0 commit comments

Comments
 (0)