Mercurial > mxd2map
annotate contrib/installer/example/RunExample.bat @ 285:9182d5a0aef4
included Press-release
author | Stephan Holl <stephan.holl@intevation.de> |
---|---|
date | Thu, 10 Nov 2011 12:53:32 +0100 |
parents | c023b4978663 |
children | 5e7e6d99f997 |
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. |
c023b4978663
Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@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 |
c023b4978663
Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@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 |
c023b4978663
Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@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 |
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 |
c023b4978663
Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@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% |
c023b4978663
Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff
changeset
|
34 SET GDAL_DATA=%CD%\ms_6.1-dev\bin\gdal-data |
c023b4978663
Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff
changeset
|
35 SET GDAL_DRIVER_PATH=%CD%\ms_6.1-dev\bin\gdal\plugins |
c023b4978663
Reworked the dir-layout to fit the need of the NSIS-installer;
Stephan Holl <stephan.holl@intevation.de>
parents:
diff
changeset
|
36 SET PYTHONPATH=%CD%\ms_6.1-dev\bin\gdal\python\osgeo |
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 |