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