forked from JeffersonLab/clas12-offline-software
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-coatjava.sh
More file actions
executable file
·104 lines (89 loc) · 3.55 KB
/
build-coatjava.sh
File metadata and controls
executable file
·104 lines (89 loc) · 3.55 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
mkdir coatjava
cp -r bin coatjava/
cp -r etc coatjava/
cp -r lib coatjava/
mkdir coatjava/lib/services
### clean up any cache copies ###
rm -rf ~/.m2/repository/org/hep/hipo
rm -rf ~/.m2/repository/org/jlab/groot
rm -rf ~/.m2/repository/org/jlab/service/dc
rm -rf ~/.m2/repository/org/jlab/clas/clas-jcsg
rm -rf ~/.m2/repository/org/jlab/clas/coat-libs
rm -rf ~/.m2/repository/org/jlab/clas/common-tools
rm -rf ~/.m2/repository/org/jlab/coda
### coat-libs ###
cd common-tools
mvn install
if [ $? != 0 ] ; then echo "common tools failure 1" ; exit 1 ; fi
cd -
cd common-tools/coat-lib
mvn package
if [ $? != 0 ] ; then echo "common tools failure 2" ; exit 1 ; fi
cd -
cp common-tools/coat-lib/target/coat-libs*.jar coatjava/lib/clas/
### jcsg ###
export COATJAVA=$PWD/coatjava/
cd common-tools/clas-jcsg
./gradlew assemble
if [ $? != 0 ] ; then echo "jcsg failure" ; exit 1 ; fi
cd -
cp common-tools/clas-jcsg/build/libs/jcsg-0.3.2.jar coatjava/lib/clas/
### create local mvn repo containing coat-libs and jcsg ##
mvn deploy:deploy-file -Dfile=./common-tools/coat-lib/target/coat-libs-3.0-SNAPSHOT.jar -DgroupId=org.jlab.clas -DartifactId=common-tools -Dversion=0.0 -Dpackaging=jar -Durl=file:./myLocalMvnRepo/ -DrepositoryId=myLocalMvnRepo -DupdateReleaseInfo=true
if [ $? != 0 ] ; then echo "failed to create local mvn repo" ; exit 1 ; fi
mvn deploy:deploy-file -Dfile=./common-tools/clas-jcsg/build/libs/jcsg-0.3.2.jar -DgroupId=org.jlab.clas -DartifactId=clas-jcsg -Dversion=0.0 -Dpackaging=jar -Durl=file:./myLocalMvnRepo/ -DrepositoryId=myLocalMvnRepo -DupdateReleaseInfo=true
if [ $? != 0 ] ; then echo "failed to create local mvn repo" ; exit 1 ; fi
### dc (depends on jcsg) ###
cd reconstruction/dc
mvn install
if [ $? != 0 ] ; then echo "dc failure" ; exit 1 ; fi
cd -
cp reconstruction/dc/target/clas12detector-dc-1.0-SNAPSHOT.jar coatjava/lib/services/
### add dc jar to local mvn repo ###
mvn deploy:deploy-file -Dfile=./reconstruction/dc/target/clas12detector-dc-1.0-SNAPSHOT.jar -DgroupId=org.jlab.service.dc -DartifactId=clas12detector-dc -Dversion=0.0 -Dpackaging=jar -Durl=file:./myLocalMvnRepo/ -DrepositoryId=myLocalMvnRepo -DupdateReleaseInfo=true
if [ $? != 0 ] ; then echo "dc failure" ; exit 1 ; fi
### tof (depends on jcsg and dc) ###
cd reconstruction/tof
mvn install
if [ $? != 0 ] ; then echo "tof failure" ; exit 1 ; fi
cd -
cp reconstruction/tof/target/tof-1.0-SNAPSHOT.jar coatjava/lib/services/
### cvt ###
cd reconstruction/cvt
mvn install
if [ $? != 0 ] ; then echo "cvt failure" ; exit 1 ; fi
cd -
cp reconstruction/cvt/target/cvt-1.0-SNAPSHOT.jar coatjava/lib/services/
### ft ###
cd reconstruction/ft
mvn install
if [ $? != 0 ] ; then echo "ft failure" ; exit 1 ; fi
cd -
cp reconstruction/ft/target/clas12detector-ft-1.0-SNAPSHOT.jar coatjava/lib/services/
### ec ###
cd reconstruction/ec
mvn install
if [ $? != 0 ] ; then echo "ec failure" ; exit 1 ; fi
cd -
cp reconstruction/ec/target/clas12detector-ec-1.0-SNAPSHOT.jar coatjava/lib/services/
### ltcc ###
cd reconstruction/ltcc
mvn install
if [ $? != 0 ] ; then echo "ltcc failure" ; exit 1 ; fi
cd -
cp reconstruction/ltcc/target/clasrec-ltcc-1.0-SNAPSHOT.jar coatjava/lib/services/
### htcc ###
cd reconstruction/htcc
mvn install
if [ $? != 0 ] ; then echo "htcc failure" ; exit 1 ; fi
cd -
cp reconstruction/htcc/target/clasrec-htcc-1.0-SNAPSHOT.jar coatjava/lib/services/
### eb ###
cd reconstruction/eb
mvn install
if [ $? != 0 ] ; then echo "eb failure" ; exit 1 ; fi
cd -
cp reconstruction/eb/target/clas12detector-eb-1.0-SNAPSHOT.jar coatjava/lib/services/
### end ###
echo "COATJAVA SUCCESSFULLY BUILT !"