annotate contrib/installer/bin/MXD2map-Shell.bat @ 306:ea3fde77ea48

Catch generic Exceptions to avoid leaking them and creating silent errors
author Andre Heinecke <aheinecke@intevation.de>
date Thu, 06 Sep 2012 18:56:20 +0200
parents 42c89821a868
children 5e7e6d99f997
rev   line source
264
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
1 @echo off
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
2 if "%1" == "setenv" goto setenv
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
3
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
4 %comspec% /k MXD2map-Shell.bat setenv %1
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
5 goto exit
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
6
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
7 :setenv
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
8 @echo Setting environment for using MXD2map based on gisinternals.com windows builds.
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
9 @echo See http://mxd2map.org and http://gisinternals.com/sdk/ for details.
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
10
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
11 if "%2"=="hideoci" goto hideoci
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
12
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
13 set ocipath=0
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
14 set _path="%PATH:;=" "%"
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
15 for %%p in (%_path%) do if not "%%~p"=="" if exist %%~p\oci.dll set ocipath=1
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
16
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
17 if "%ocipath%"=="0" goto hideoci
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
18 @echo WARNING: If you encounter problems with missing oci libraries then type:
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
19 @echo MXD2mapShell hideoci
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
20 goto setenv2
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
21
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
22 :hideoci
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
23 @echo Hiding the OCI plugin library.
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
24 if not exist %CD%\ms_6.1-dev\bin\gdal\plugins-optional mkdir %CD%\ms_6.1-dev\bin\gdal\plugins-optional
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
25 if exist %CD%\ms_6.1-dev\bin\gdal\plugins\ogr_OCI.dll move %CD%\ms_6.1-dev\bin\gdal\plugins\ogr_OCI.dll %CD%\ms_6.1-dev\bin\gdal\plugins-optional\ogr_OCI.dll
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
26 if exist %CD%\ms_6.1-dev\bin\gdal\plugins\gdal_GEOR.dll move %CD%\ms_6.1-dev\bin\gdal\plugins\gdal_GEOR.dll %CD%\ms_6.1-dev\bin\gdal\plugins-optional\gdal_GEOR.dll
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
27
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
28 REM SEE Details about the installation of arcobjects.jar!!
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
29 REM http://forums.arcgis.com/threads/17398-Unable-to-initialize-ArcObjects-environment-%28Java-API%29
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
30 REM http://forums.arcgis.com/threads/12833-ArcGIS-Server-initialize-license-%28Java-version%29
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
31 REM SEE Details about the installation of arcobjects.jar!!
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
32 :setenv2
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
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%\ms_6.1-dev\bin;%CD%\ms_6.1-dev\bin\gdal\python\osgeo;%CD%\ms_6.1-dev\bin\proj\apps;%CD%\ms_6.1-dev\bin\gdal\apps;%CD%\ms_6.1-dev\bin\ms\apps;%CD%\ms_6.1-dev\bin\gdal\csharp;%CD%\ms_6.1-dev\bin\ms\csharp;%CD%\ms_6.1-dev\bin\curl;%CD%\ms_6.1-dev\bin\ms\java;%PATH%
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
34 SET GDAL_DATA=%CD%\ms_6.1-dev\bin\gdal-data
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
35 SET GDAL_DRIVER_PATH=%CD%\ms_6.1-dev\bin\gdal\plugins
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
36 SET PYTHONPATH=%CD%\ms_6.1-dev\bin\gdal\python\osgeo
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
37 SET PROJ_LIB=%CD%\bin\proj\SHARE
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
38 SET CURL_CA_BUNDLE=C:\ms4w\Apache\conf\ca-bundle\cacert.pem
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
39 SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_26
42c89821a868 Added installer files.
intevation@vbox-server2003.hq.intevation.de
parents:
diff changeset
40 :exit
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)