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