/[xulu]/trunk/InitXulu.bat
ViewVC logotype

Contents of /trunk/InitXulu.bat

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Wed Feb 25 11:54:01 2009 UTC (15 years, 9 months ago) by mojays
File MIME type: text/plain
File size: 6936 byte(s)
First Commit, corresponds to Revision 1008 of Wikisquare-SVN 
1 @echo off
2 rem =====================================================================
3 rem Initializes the XULU folder structure after the first SVN checkout
4 rem by copying default configuration files from the "defaults" folder
5 rem to their expected location.
6 rem
7 rem The default behavior is only to copy not existing files. If you
8 rem want to completly reset you configuration (in case of a partially
9 rem deleted or damaged configuration) you can use the command parameter
10 rem "/reset" to overwrite all files with their default.
11 rem
12 rem Summery:
13 rem - copy "DefaultProperties" to main folder
14 rem - copy Eclipse configuration to main folder
15 rem - .classpath
16 rem - .project
17 rem - copy "startXulu.bat" to main folder
18 rem - copy XULU registry files to main folder
19 rem - registry.xif
20 rem - registry_arrayGrid.xif
21 rem - registry_ProxyGrid.xif
22 rem - XULU plugin configurations
23 rem - plugin\GeoModelCodeGenerator\* to plugin folder
24 rem - plugin\GTVisualisationColorMapPlugin\* to plugin folder
25 rem - plugin\LoggerPlugin\* to plugin folder
26 rem - plugin\RasterCalculator\* to plugin folder
27 rem =====================================================================
28
29 setlocal
30
31 set SOURCE_DIR=defaults
32
33 rem *** Reset mode >> Overwrite without confirm ***
34 if "%1"=="/init" (set COPY_PARAM=/Y) else set COPY_PARAM=/-Y
35 if "%1"=="/init" goto overwrite
36 rem *** Update mode >> Overwrite with confirm ***
37 if "%1"=="/reset" goto overwrite
38 rem *** Default mode >> only copy not existing files ***
39 goto no_overwrite
40
41 rem ************************** Update routine **************************
42 :no_overwrite
43 echo.
44 echo.The XULU configuration will be updated with new files...
45 echo.*** DefaultProperties ***
46 if not exist DefaultProperties (copy %SOURCE_DIR%\DefaultProperties .) else echo. 'DefaultProperties' skipped!
47 if not exist XuluProperties (copy %SOURCE_DIR%\XuluProperties .) else echo. 'XuluProperties' skipped!
48 echo.*** Eclipse configuration ***
49 if not exist .classpath (copy %SOURCE_DIR%\.classpath .) else echo. '.classpath' skipped!
50 if not exist .project (copy %SOURCE_DIR%\.project .) else echo. '.project' skipped!
51 echo.*** startXulu.bat ***
52 if not exist startXulu.bat (copy %SOURCE_DIR%\startXulu.bat .) else echo. 'startXulu.bat' skipped!
53 echo.*** sample XULU registry files ***
54 if not exist registry.xif (copy %SOURCE_DIR%\registry.xif .) else echo. 'registry.xif' skipped!
55 if not exist registry_arrayGrid.xif (copy %SOURCE_DIR%\registry_arrayGrid.xif .) else echo. 'registry_arrayGrid.xif' skipped!
56 if not exist registry_ProxyGrid.xif (copy %SOURCE_DIR%\registry_ProxyGrid.xif .) else echo. 'registry_ProxyGrid.xif' skipped!
57 echo.*** Plugin folder ***
58 if not exist plugin (mkdir plugin) else echo. 'plugin' folder already exists!
59 echo.*** Template files for GeoModelCodeGenerator plugin ***
60 set DDIR=plugin\GeoModelCodeGenerator
61 set SDIR=%SOURCE_DIR%\%DDIR%
62 if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
63 if not exist %DDIR%\ModelContentManager.tpl (copy %SDIR%\ModelContentManager.tpl %DDIR%) else echo. 'ModelContentManager.tpl' skipped!
64 if not exist %DDIR%\StepModel.tpl (copy %SDIR%\StepModel.tpl %DDIR%) else echo. 'StepModel.tpl' skipped!
65 if not exist %DDIR%\XuluModel.tpl (copy %SDIR%\XuluModel.tpl %DDIR%) else echo. 'XuluModel.tpl' skipped!
66 echo.*** Template files for GTVisualisationColorMapPlugin ***
67 set DDIR=plugin\GTVisualisationColorMapPlugin
68 set SDIR=%SOURCE_DIR%\%DDIR%
69 if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
70 if not exist %DDIR%\gtcolormaps.xif (copy %SDIR%\gtcolormaps.xif %DDIR%) else echo. 'gtcolormaps.xif' skipped!
71 echo.*** Template files for LoggerPlugin ***
72 set DDIR=plugin\LoggerPlugin
73 set SDIR=%SOURCE_DIR%\%DDIR%
74 if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
75 if not exist %DDIR%\log4j.cfg (copy %SDIR%\log4j.cfg %DDIR%) else echo. 'log4j.cfg' skipped!
76 echo.*** Template files for LoggerPlugin ***
77 set DDIR=plugin\RasterCalculator
78 set SDIR=%SOURCE_DIR%\%DDIR%
79 if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
80 if not exist %DDIR%\default_filter.inp (copy %SDIR%\default_filter.inp %DDIR%) else echo. 'default_filter.inp' skipped!
81
82 goto finish
83
84 rem ************************ Overwrite routine *************************
85 :overwrite
86 echo.
87 echo.The XULU configuration will be completly reset!!
88 echo.*** DefaultProperties ***
89 copy %SOURCE_DIR%\DefaultProperties . %COPY_PARAM%
90 copy %SOURCE_DIR%\XuluProperties . %COPY_PARAM%
91 echo.*** Eclipse configuration ***
92 copy %SOURCE_DIR%\.classpath . %COPY_PARAM%
93 copy %SOURCE_DIR%\.project . %COPY_PARAM%
94 echo.*** startXulu.bat ***
95 copy %SOURCE_DIR%\startXulu.bat . %COPY_PARAM%
96 echo.*** sample XULU registry files ***
97 copy %SOURCE_DIR%\registry.xif . %COPY_PARAM%
98 copy %SOURCE_DIR%\registry_arrayGrid.xif . %COPY_PARAM%
99 copy %SOURCE_DIR%\registry_ProxyGrid.xif . %COPY_PARAM%
100 echo.*** Plugin folder ***
101 if not exist plugin (mkdir plugin) else echo. 'plugin' folder already exists!
102 echo.*** Template files for GeoModelCodeGenerator plugin ***
103 set DDIR=plugin\GeoModelCodeGenerator
104 set SDIR=%SOURCE_DIR%\%DDIR%
105 if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
106 copy %SDIR%\ModelContentManager.tpl %DDIR% %COPY_PARAM%
107 copy %SDIR%\StepModel.tpl %DDIR% %COPY_PARAM%
108 copy %SDIR%\XuluModel.tpl %DDIR% %COPY_PARAM%
109 echo.*** Template files for GTVisualisationColorMapPlugin ***
110 set DDIR=plugin\GTVisualisationColorMapPlugin
111 set SDIR=%SOURCE_DIR%\%DDIR%
112 if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
113 copy %SDIR%\gtcolormaps.xif %DDIR% %COPY_PARAM%
114 echo.*** Template files for LoggerPlugin ***
115 set DDIR=plugin\LoggerPlugin
116 set SDIR=%SOURCE_DIR%\%DDIR%
117 if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
118 copy %SDIR%\log4j.cfg %DDIR% %COPY_PARAM%
119 echo.*** Template files for LoggerPlugin ***
120 set DDIR=plugin\RasterCalculator
121 set SDIR=%SOURCE_DIR%\%DDIR%
122 if not exist %DDIR% (mkdir %DDIR%) else echo. folder '%DDIR%' already exists!
123 copy %SDIR%\default_filter.inp %DDIR% %COPY_PARAM%
124
125
126 goto finish
127
128
129 rem ************************** Finish routine **************************
130 :finish
131 echo.Finished.
132 echo.
133
134 endlocal

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26