[jboss-cvs] jboss-seam ...
Gavin King
gavin.king at jboss.com
Mon Nov 6 17:18:20 EST 2006
User: gavin
Date: 06/11/06 17:18:20
Modified: jboss-seam seam
Removed: jboss-seam seam.bat
Log:
don't drive it from the scripts, parameterize the datasource
Revision Changes Path
1.8 +13 -62 jboss-seam/seam
(In the diff below, changes in quantity of whitespace are not shown.)
Index: seam
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- seam 6 Nov 2006 20:14:08 -0000 1.7
+++ seam 6 Nov 2006 22:18:20 -0000 1.8
@@ -1,75 +1,26 @@
#/bin/sh
############################################
#
-# Seam-gen tasks script.
+# seam-gen
#
############################################
-seamtask=${1}
-taskinput=${2}
-taskinput2=${3}
-taskinput3=${4}
-
cd seam-gen
-if [ "${seamtask}" = setup ]
- then
- ant setup
-
-elif [ "${seamtask}" = new-project ]
- then
- ant new-project -Dproject.name=${taskinput}
-
-elif [ "${seamtask}" = new-wtp-project ]
- then
- ant new-wtp-project -Dproject.name=${taskinput}
-
-elif [ "${seamtask}" = deploy ]
- then
- ant deploy
-
-elif [ "${seamtask}" = undeploy ]
- then
- ant undeploy
-
-elif [ "${seamtask}" = explode ]
- then
- ant explode
-
-elif [ "${seamtask}" = restart ]
- then
- ant restart
-
-elif [ "${seamtask}" = unexplode ]
- then
- ant unexplode
-
-elif [ "${seamtask}" = generate-entities ]
- then
- ant generate-entities
-
-elif [ "${seamtask}" = new-action ]
- then
- ant new-stateless-action -Daction.name=${taskinput} -Dpage.name="${taskinput2}"
-
-elif [ "${seamtask}" = new-form ]
- then
- ant new-stateful-action -Daction.name=${taskinput} -Dpage.name="${taskinput2}"
-
-elif [ "${seamtask}" = new-conversation ]
- then
- ant new-conversation -Daction.name=${taskinput} -Dpage.name="${taskinput2}"
-
-elif [ "${seamtask}" = new-entity ]
- then
- ant new-entity -Daction.name=${taskinput} -Dpage.name="${taskinput2}" -DmasterPage.name="${taskinput3}"
-
-elif [ "${seamtask}" = help ]
- then
- cat README
+if [ "${1}" = new-project ]
+then
+
+ ant new-project -Dproject.name=${2}
+
+elif [ "${1}" = new-wtp-project ]
+then
+
+ ant new-wtp-project -Dproject.name=${2}
else
- cat USAGE
+
+ ant ${1} ${2} ${3} ${4} ${5} ${6} ${7}
+
fi
cd ..
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list