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