-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
build-fast.sh
executable file
·42 lines (35 loc) · 1.48 KB
/
build-fast.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
#!/bin/bash
# requires: sudo apt-get install openjfx
# skips tests
function check_error {
if [ $1 -gt 0 ]; then
echo "Found error!"
exit 1
fi
}
# export JAVA_HOME=/home/jens/bin/jdk-17.0.9-full/
# export JAVA_HOME=/home/jens/bin/jdk1.8.0_131
export JAVA_HOME=/home/jens/bin/jdk-11.0.9.1-full/
# there is an OpenJDK bug on Ubuntu, causing Surefire tests to fail - skip tests for now
mvn -f j-lawyer-cloud/pom.xml install -DskipTests
check_error $?
ant -buildfile j-lawyer-fax/build.xml jar
check_error $?
ant -buildfile j-lawyer-server-common/build.xml jar
check_error $?
ant -Dj2ee.server.home=/home/travis -buildfile j-lawyer-server-entities/build.xml dist
check_error $?
ant -buildfile j-lawyer-server-api/build.xml jar
check_error $?
# ant -Dplatforms.default_platform.home=/home/jens/bin/jdk-17.0.9-full/ -Dj2ee.server.home=/home/travis -buildfile j-lawyer-server/build.xml dist
ant -Dplatforms.default_platform.home=/home/jens/bin/jdk-11.0.9.1-full/ -Dj2ee.server.home=/home/travis -buildfile j-lawyer-server/build.xml dist
check_error $?
ant -buildfile j-lawyer-io-common/build.xml jar
check_error $?
export JAVA_HOME=/home/jens/bin/jdk-11.0.9.1-full/
ant -buildfile j-lawyer-client/build.xml jar
check_error $?
# export JAVA_HOME=/home/jens/bin/jdk1.8.0_192/
export JAVA_HOME=/home/jens/bin/jdk8u265-full/
# there is an OpenJDK bug on Ubuntu, causing Surefire tests to fail - skip tests for now
mvn -f j-lawyer-backupmgr/pom.xml package -DskipTests -Djava.home=/home/jens/bin/jdk8u265-full/jre