annotate contrib/installer/example/RunExample.bat @ 325:ebe500ec8a91

Update and clarify release instructions
author Andre Heinecke <aheinecke@intevation.de>
date Mon, 15 Oct 2012 11:42:28 +0200
parents 5e7e6d99f997
children
rev   line source
278
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
1 @echo off
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
2 if "%1" == "setenv" goto setenv
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
3
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
4 %comspec% /k RunExample.bat setenv %1
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
5 goto exit
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
6
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
7 :setenv
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
8 @echo Setting environment for using MXD2map based on gisinternals.com windows builds.
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
9 @echo See http://mxd2map.org and http://gisinternals.com/sdk/ for details.
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
10
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
11 if "%2"=="hideoci" goto hideoci
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
12
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
13 set ocipath=0
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
14 set _path="%PATH:;=" "%"
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
15 for %%p in (%_path%) do if not "%%~p"=="" if exist %%~p\oci.dll set ocipath=1
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
16
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
17 if "%ocipath%"=="0" goto hideoci
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
18 @echo WARNING: If you encounter problems with missing oci libraries then type:
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
19 @echo MXD2mapShell hideoci
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
20 goto setenv2
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
21
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
22 :hideoci
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
23 @echo Hiding the OCI plugin library.
324
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
24 if not exist %CD%\mapserver\bin\gdal\plugins-optional mkdir %CD%\mapserver\bin\gdal\plugins-optional
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
25 if exist %CD%\mapserver\bin\gdal\plugins\ogr_OCI.dll move %CD%\mapserver\bin\gdal\plugins\ogr_OCI.dll %CD%\mapserver\bin\gdal\plugins-optional\ogr_OCI.dll
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
26 if exist %CD%\mapserver\bin\gdal\plugins\gdal_GEOR.dll move %CD%\mapserver\bin\gdal\plugins\gdal_GEOR.dll %CD%\mapserver\bin\gdal\plugins-optional\gdal_GEOR.dll
278
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
27
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
28 REM SEE Details about the installation of arcobjects.jar!!
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
29 REM http://forums.arcgis.com/threads/17398-Unable-to-initialize-ArcObjects-environment-%28Java-API%29
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
30 REM http://forums.arcgis.com/threads/12833-ArcGIS-Server-initialize-license-%28Java-version%29
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
31 REM SEE Details about the installation of arcobjects.jar!!
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
32 :setenv2
324
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
33 SET PATH=C:\Program Files\ArcGIS\DeveloperKit10.0\java\jre\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files\ArcGIS\Desktop10.0\bin;C:\Program Files\ArcGIS\Desktop10.0\java\lib;C:\Program Files\ArcGIS\DeveloperKit10.0\java\tools\ant\bin;%CD%\mapserver\bin;%CD%\mapserver\bin\gdal\python\osgeo;%CD%\mapserver\bin\proj\apps;%CD%\mapserver\bin\gdal\apps;%CD%\mapserver\bin\ms\apps;%CD%\mapserver\bin\gdal\csharp;%CD%\mapserver\bin\ms\csharp;%CD%\mapserver\bin\curl;%CD%\mapserver\bin\ms\java;%PATH%
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
34 SET GDAL_DATA=%CD%\mapserver\bin\gdal-data
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
35 SET GDAL_DRIVER_PATH=%CD%\mapserver\bin\gdal\plugins
5e7e6d99f997 Make mapserver install location version independent
Andre Heinecke <aheinecke@intevation.de>
parents: 278
diff changeset
36 SET PYTHONPATH=%CD%\mapserver\bin\gdal\python\osgeo
278
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
37 SET PROJ_LIB=%CD%\bin\proj\SHARE
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
38 SET CURL_CA_BUNDLE=C:\ms4w\Apache\conf\ca-bundle\cacert.pem
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
39 SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
40
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
41 java -jar mxd2map.jar -m example\example.mxd -t example\template.map -a "%HOMEDRIVE%%HOMEPATH%\MXD2map\example\output.map"
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
42
c023b4978663 Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
43 :exit
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)