]> git.mxchange.org Git - jprojects-scripts.git/blob - .jprojects.sh
87cba90b88dd21a405251c9cdf683665f2c164de
[jprojects-scripts.git] / .jprojects.sh
1 #!/bin/bash
2
3 # Tools repository
4 LIST="jprojects-scripts"
5
6 # Libraries and EJBs
7 LIST="${LIST} \
8         jcore jcoreee \
9         jcore-logger-lib jcore-logger-ejb \
10         jcountry-core jcountry-lib \
11         jphone-core jphone-lib \
12         jcontacts-core jcontacts-business-core jcontacts-lib \
13         juser-core juser-lib \
14         jaddressbook-core \
15         jletter-core jletter-lib jletter-ejb \
16         jaddressbook-core jaddressbook-lib \
17         jmailer-ee \
18         jcore-swing \
19         jcustomer-core jcustomer-lib \
20         jshop-core jshop-ee-lib jshop-ejb \
21         jshop-receipt-lib jshop-receipt-ejb"
22
23 # Applications and their special libs/EJBs
24 LIST="${LIST}
25         pizzaservice-core pizzaservice-lib pizzaservice-mailer pizzaservice-ejb pizzaservice-swing \
26         jjobs-core jjobs-lib jjobs-mailer jjobs-ejb jjobs-war jjobs \
27         jratecalc-core jratecalc-lib jratecalc-mailer jratecalc-ejb jratecalc-war jratecalc \
28         addressbook-core addressbook-lib addressbook-mailer addressbook-ejb addressbook-war addressbook addressbook-uml"
29
30 # BROKEN:
31 LIST="${LIST} addressbook-swing pizzaservice-war pizzaservice"
32
33 # Own home directory
34 declare -r JPROJECTS_HOME="${PWD}"
35
36 # ant binary
37 ANT_BIN=`which ant`
38
39 # Test on .git availability"
40 for project in ${LIST}; do
41         if [ ! -d "${project}" ]
42         then
43                 echo "$0: Project '${project}' not created."
44         elif [ ! -f "${project}/.git/config" ]
45         then
46                 echo "$0: Project '${project}' is no GIT project."
47                 exit 1
48         fi
49 done