[jboss-cvs] /jboss-seam ...

James Williams james.williams at jboss.com
Thu Nov 9 10:35:48 EST 2006


  User: jwilliams
  Date: 06/11/09 10:35:48

  Modified:    jboss-seam  seam.bat
  Log:
  got rid of most if/else shit
  
  Revision  Changes    Path
  1.12      +9 -35     /jboss-seam/seam.bat
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: seam.bat
  ===================================================================
  RCS file: /cvsroot/jboss//jboss-seam/seam.bat,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -b -r1.11 -r1.12
  --- seam.bat	9 Nov 2006 14:57:58 -0000	1.11
  +++ seam.bat	9 Nov 2006 15:35:48 -0000	1.12
  @@ -10,53 +10,27 @@
   
   set SEAMGENDIR=%DIRNAME%\seam-gen
   
  -rem Read all command line arguments
   set SEAMTASK=%1%
   set PROJECTNAME=%2%
  +set ARGS=%ARGS% %*
   
   if [%1] == [] (goto usage)
   
  -if %SEAMTASK% == setup ( ant setup -buildfile=%SEAMGENDIR%\build.xml ) else (goto new-project)
  +:help
  +if %SEAMTASK% == help ( goto help ) else (goto new-project)
   
   :new-project
  -if %SEAMTASK% == new-project ( ant new-project -buildfile=%SEAMGENDIR%\build.xml -Dproject.name=%PROJECTNAME% ) else (goto explode)
  -
  -:explode
  -if %SEAMTASK% == explode ( ant explode -buildfile=%SEAMGENDIR%\build.xml ) else (goto unexplode)
  -
  -:unexplode
  -if %SEAMTASK% == unexplode ( ant unexplode -buildfile=%SEAMGENDIR%\build.xml ) else (goto deploy)
  -
  -:deploy
  -if %SEAMTASK% == deploy ( ant deploy -buildfile=%SEAMGENDIR%\build.xml ) else (goto undeploy)
  -
  -:undeploy
  -if %SEAMTASK% == undeploy ( ant undeploy -buildfile=%SEAMGENDIR%\build.xml ) else (goto restart)
  -
  -:restart
  -if %SEAMTASK% == restart ( ant restart -buildfile=%SEAMGENDIR%\build.xml ) else (goto new-action)
  -
  -:new-action
  -if %SEAMTASK% == new-action ( ant new-action -buildfile=%SEAMGENDIR%\build.xml ) else (goto new-form)
  +if %SEAMTASK% == new-project ( ant new-project -buildfile=%SEAMGENDIR%\build.xml -Dproject.name=%PROJECTNAME% ) else (goto other-tasks)
   
  -:new-form
  -if %SEAMTASK% == new-form ( ant new-form -buildfile=%SEAMGENDIR%\build.xml ) else (goto new-conversation)
  -
  -:new-conversation
  -if %SEAMTASK% == new-conversation ( ant new-conversation -buildfile=%SEAMGENDIR%\build.xml ) else (goto new-entity)
  -
  -:new-entity
  -if %SEAMTASK% == new-entity ( ant new-entity -buildfile=%SEAMGENDIR%\build.xml ) else (goto generate-entities)
  -
  -:generate-entities
  -if %SEAMTASK% == generate-entities ( ant generate-entities -buildfile=%SEAMGENDIR%\build.xml ) else (goto help)
  -
  -:help
  -if %SEAMTASK% == help ( more %SEAMGENDIR%\README ) else (goto usage)
  +:other-tasks
  +ant %ARGS% -buildfile=%SEAMGENDIR%\build.xml 
   
   :usage
   more %SEAMGENDIR%\USAGE
   
  +:help
  +more %SEAMGENDIR%\README
  +
   goto END_NO_PAUSE
   
   :END_NO_PAUSE
  
  
  



More information about the jboss-cvs-commits mailing list