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