[Xulu-commits] r7 - trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 25 21:26:46 CET 2009


Author: mojays
Date: 2009-02-25 21:26:41 +0100 (Wed, 25 Feb 2009)
New Revision: 7

Added:
   trunk/initXulu.bat
Log:
InitXulu.bat renamed to initXulu.bat

Added: trunk/initXulu.bat
===================================================================
--- trunk/initXulu.bat	2009-02-25 20:25:17 UTC (rev 6)
+++ trunk/initXulu.bat	2009-02-25 20:26:41 UTC (rev 7)
@@ -0,0 +1,136 @@
+ at echo off
+rem =====================================================================
+rem  Initializes the XULU folder structure after the first SVN checkout
+rem  by copying default configuration files from the "defaults" folder
+rem  to their expected location.
+rem 
+rem  The default behavior is only to copy not existing files. If you
+rem  want to completly reset you configuration (in case of a partially
+rem  deleted or damaged configuration) you can use the command parameter
+rem  "/reset" to overwrite all files with their default.
+rem
+rem  Summery:
+rem     - copy "DefaultProperties" to main folder
+rem     - copy Eclipse configuration to main folder
+rem              - .classpath
+rem              - .project
+rem     - copy "startXulu.bat" to main folder
+rem     - copy XULU registry files to main folder
+rem              - registry.xif
+rem              - registry_arrayGrid.xif
+rem              - registry_ProxyGrid.xif
+rem     - XULU plugin configurations
+rem              - plugin\GeoModelCodeGenerator\* to plugin folder
+rem              - plugin\GTVisualisationColorMapPlugin\* to plugin folder
+rem              - plugin\LoggerPlugin\* to plugin folder
+rem              - plugin\RasterCalculator\* to plugin folder
+rem =====================================================================
+
+setlocal
+
+set SOURCE_DIR=defaults
+
+rem *** Reset mode >> Overwrite without confirm ***
+if "%1"=="/init"  (set COPY_PARAM=/Y) else set COPY_PARAM=/-Y
+if "%1"=="/init" goto overwrite
+rem *** Update mode >> Overwrite with confirm ***
+if "%1"=="/reset" goto overwrite
+rem *** Default mode >> only copy not existing files ***
+goto no_overwrite
+
+rem ************************** Update routine **************************
+:no_overwrite
+echo.
+echo.The XULU configuration will be updated with new files...
+echo.*** DefaultProperties ***
+if not exist DefaultProperties (copy %SOURCE_DIR%\DefaultProperties .) else echo.        'DefaultProperties' skipped!
+if not exist XuluProperties    (copy %SOURCE_DIR%\XuluProperties .)    else echo.        'XuluProperties' skipped!
+echo.*** Eclipse configuration ***
+if not exist .classpath (copy %SOURCE_DIR%\.classpath .) else echo.        '.classpath' skipped!
+if not exist .project   (copy %SOURCE_DIR%\.project .)   else echo.        '.project' skipped!
+echo.*** startXulu.bat ***
+if not exist startXulu.bat (copy %SOURCE_DIR%\startXulu.bat .) else echo.        'startXulu.bat' skipped!
+if not exist startXulu.sh  (copy %SOURCE_DIR%\startXulu.sh  .) else echo.        'startXulu.sh' skipped!
+echo.*** sample XULU registry files ***
+if not exist registry.xif           (copy %SOURCE_DIR%\registry.xif .)           else echo.        'registry.xif' skipped!
+if not exist registry_arrayGrid.xif (copy %SOURCE_DIR%\registry_arrayGrid.xif .) else echo.        'registry_arrayGrid.xif' skipped!
+if not exist registry_ProxyGrid.xif (copy %SOURCE_DIR%\registry_ProxyGrid.xif .) else echo.        'registry_ProxyGrid.xif' skipped!
+echo.*** Plugin folder ***
+if not exist plugin (mkdir plugin)  else echo.        'plugin' folder already exists!
+echo.*** Template files for GeoModelCodeGenerator plugin ***
+set DDIR=plugin\GeoModelCodeGenerator
+set SDIR=%SOURCE_DIR%\%DDIR%
+if not exist %DDIR%                         (mkdir %DDIR%)                                         else echo.        folder '%DDIR%' already exists!
+if not exist %DDIR%\ModelContentManager.tpl (copy %SDIR%\ModelContentManager.tpl %DDIR%)           else echo.        'ModelContentManager.tpl' skipped!
+if not exist %DDIR%\StepModel.tpl           (copy %SDIR%\StepModel.tpl           %DDIR%)           else echo.        'StepModel.tpl' skipped!
+if not exist %DDIR%\XuluModel.tpl           (copy %SDIR%\XuluModel.tpl           %DDIR%)           else echo.        'XuluModel.tpl' skipped!
+echo.*** Template files for GTVisualisationColorMapPlugin ***
+set DDIR=plugin\GTVisualisationColorMapPlugin
+set SDIR=%SOURCE_DIR%\%DDIR%
+if not exist %DDIR%                 (mkdir %DDIR%)                        else echo.        folder '%DDIR%' already exists!
+if not exist %DDIR%\gtcolormaps.xif (copy %SDIR%\gtcolormaps.xif %DDIR%)  else echo.        'gtcolormaps.xif' skipped!
+echo.*** Template files for LoggerPlugin ***
+set DDIR=plugin\LoggerPlugin
+set SDIR=%SOURCE_DIR%\%DDIR%
+if not exist %DDIR%           (mkdir %DDIR%)                  else echo.        folder '%DDIR%' already exists!
+if not exist %DDIR%\log4j.cfg (copy %SDIR%\log4j.cfg %DDIR%)  else echo.        'log4j.cfg' skipped!
+echo.*** Template files for LoggerPlugin ***
+set DDIR=plugin\RasterCalculator
+set SDIR=%SOURCE_DIR%\%DDIR%
+if not exist %DDIR%                    (mkdir %DDIR%)                           else echo.        folder '%DDIR%' already exists!
+if not exist %DDIR%\default_filter.inp (copy %SDIR%\default_filter.inp %DDIR%)  else echo.        'default_filter.inp' skipped!
+
+goto finish
+
+rem ************************ Overwrite routine *************************
+:overwrite
+echo.
+echo.The XULU configuration will be completly reset!!
+echo.*** DefaultProperties ***
+copy %SOURCE_DIR%\DefaultProperties . %COPY_PARAM%
+copy %SOURCE_DIR%\XuluProperties    . %COPY_PARAM%
+echo.*** Eclipse configuration ***
+copy %SOURCE_DIR%\.classpath . %COPY_PARAM%
+copy %SOURCE_DIR%\.project .   %COPY_PARAM%
+echo.*** startXulu.bat ***
+copy %SOURCE_DIR%\startXulu.bat .   %COPY_PARAM%
+copy %SOURCE_DIR%\startXulu.sh  .   %COPY_PARAM%
+echo.*** sample XULU registry files ***
+copy %SOURCE_DIR%\registry.xif           .   %COPY_PARAM%
+copy %SOURCE_DIR%\registry_arrayGrid.xif .   %COPY_PARAM%
+copy %SOURCE_DIR%\registry_ProxyGrid.xif .   %COPY_PARAM%
+echo.*** Plugin folder ***
+if not exist plugin (mkdir plugin) else echo.        'plugin' folder already exists!
+echo.*** Template files for GeoModelCodeGenerator plugin ***
+set DDIR=plugin\GeoModelCodeGenerator
+set SDIR=%SOURCE_DIR%\%DDIR%
+if not exist %DDIR% (mkdir %DDIR%) else echo.        folder '%DDIR%' already exists!
+copy %SDIR%\ModelContentManager.tpl %DDIR% %COPY_PARAM%
+copy %SDIR%\StepModel.tpl           %DDIR% %COPY_PARAM%
+copy %SDIR%\XuluModel.tpl           %DDIR% %COPY_PARAM%
+echo.*** Template files for GTVisualisationColorMapPlugin ***
+set DDIR=plugin\GTVisualisationColorMapPlugin
+set SDIR=%SOURCE_DIR%\%DDIR%
+if not exist %DDIR% (mkdir %DDIR%) else echo.        folder '%DDIR%' already exists!
+copy %SDIR%\gtcolormaps.xif %DDIR% %COPY_PARAM%
+echo.*** Template files for LoggerPlugin ***
+set DDIR=plugin\LoggerPlugin
+set SDIR=%SOURCE_DIR%\%DDIR%
+if not exist %DDIR% (mkdir %DDIR%) else echo.        folder '%DDIR%' already exists!
+copy %SDIR%\log4j.cfg %DDIR% %COPY_PARAM%
+echo.*** Template files for LoggerPlugin ***
+set DDIR=plugin\RasterCalculator
+set SDIR=%SOURCE_DIR%\%DDIR%
+if not exist %DDIR% (mkdir %DDIR%) else echo.        folder '%DDIR%' already exists!
+copy %SDIR%\default_filter.inp %DDIR% %COPY_PARAM%
+
+
+goto finish
+
+
+rem ************************** Finish routine **************************
+:finish
+echo.Finished.
+echo.
+
+endlocal



More information about the Xulu-commits mailing list