-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdo
More file actions
executable file
·37 lines (31 loc) · 972 Bytes
/
do
File metadata and controls
executable file
·37 lines (31 loc) · 972 Bytes
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
#!/bin/bash -u -e
source ~/.bashrc
RESOURCES_DIR=$HOME/epadd-settings
# build flattened jar
mvn # clean compile assembly:single
# add the needed icons etc.
cd lib
jar uvf ../target/muse-standalone-jar-with-dependencies.jar index.html edu/stanford/ejalbert/launching/windows/windowsConfig.properties
# add crossdomain.xml only to full epadd, not to discovery
jar uvf ../target/muse-standalone-jar-with-dependencies.jar crossdomain.xml
# add wars to standalone-jar
cd ../../muse/target
/bin/cp -p muse-1.0.0-SNAPSHOT.war muse.war
mkdir -p tmp
cd tmp
mkdir -p WEB-INF/classes;
for F in $RESOURCES_DIR/*;
do
cp -pr $F WEB-INF/classes/
done
for R in WEB-INF/classes/*;
do
echo "Updating with $R"
jar uvf ../muse.war $R
done
cd ..
# rm -R tmp
jar uvf ../../muse-launcher/target/muse-standalone-jar-with-dependencies.jar muse.war
# prepare standalone jars
cd ../../muse-launcher
/bin/mv -f target/muse-standalone-jar-with-dependencies.jar muse-standalone.jar