Changeset 34098 for main/trunk/greenstone3/gs3-setup.bat
- Timestamp:
- 2020-04-04T15:34:45+13:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/gs3-setup.bat
r33932 r34098 347 347 :done 348 348 :: End localisation of variables that started with the set local/set enabledelayedexpansion command 349 :: Restore global variables that would otherwise be lost at script's end due to their having been initialised in a 350 :: set local/set enabledelayedexpansion section. See http://ss64.com/nt/endlocal.html 349 :: Restore global variables that would otherwise be lost at script's end due to their having been 350 :: initialised in a set local/set enabledelayedexpansion section. 351 :: See http://ss64.com/nt/endlocal.html 352 rem endlocal & set RUNJAVA=%RUNJAVA%& set PATH=%PATH%& set GSDLOS=%GSDLOS%& set GSDLHOME=%GSDLHOME%& set GSDL3HOME=%GSDL3HOME%& set GSDL3SRCHOME=%GSDL3SRCHOME%& ^ 353 rem set JAVA_HOME=%JAVA_HOME%& set JRE_HOME=%JRE_HOME%& set ANT_HOME=%ANT_HOME%& set CLASSPATH=%CLASSPATH% 354 355 :: For locales that are significantly different from the English locale, for example for 356 :: Chinese locales, UTF-8 XML files parsed by DOM or SAX XML parser in Java code requires 357 :: that -Dfile.encoding=UTF-8 be passed to the JVM. We can ensure this happens by setting 358 :: the JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 in gs2build\setup.bat and exporting it as below. 359 :: In that case, need to also set JAVA_TOOL_OPTIONS in force-start-tomcat and 360 :: force-stop-tomcat in build.xml 361 :: Finally, in DirectoryPlugin.pm, uncomment Alias.pm and rename *forLocaleIssue files 362 :: in cpan\Encode to Alias.pm and the up-to-date Locale.pm. 351 363 endlocal & set RUNJAVA=%RUNJAVA%& set PATH=%PATH%& set GSDLOS=%GSDLOS%& set GSDLHOME=%GSDLHOME%& set GSDL3HOME=%GSDL3HOME%& set GSDL3SRCHOME=%GSDL3SRCHOME%& ^ 352 set JAVA_HOME=%JAVA_HOME%& set JRE_HOME=%JRE_HOME%& set ANT_HOME=%ANT_HOME%& set CLASSPATH=%CLASSPATH%353 354 rem For locales that are significantly different from the English locale, for example for355 rem Chinese locales, UTF-8 XML files parsed by DOM or SAX XML parser in Java code requires356 rem -Dfile.encoding=UTF-8 to be passed to the JVM. We can ensure this happens by setting357 rem the JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8 in gs2build\setup.bat and exporting it as below.358 rem In that case, can also set this in force-start-tomcat and force-stop-tomcat in build.xml359 rem Finally, in DirectoryPlugin.pm, uncomment Alias.pm and rename *forLocaleIssue files360 rem in cpan\Encode to Alias.pm and the up-to-date Locale.pm.361 rem endlocal & set RUNJAVA=%RUNJAVA%& set PATH=%PATH%& set GSDLOS=%GSDLOS%& set GSDLHOME=%GSDLHOME%& set GSDL3HOME=%GSDL3HOME%& set GSDL3SRCHOME=%GSDL3SRCHOME%& ^362 364 set JAVA_HOME=%JAVA_HOME%& set JRE_HOME=%JRE_HOME%& set JAVA_TOOL_OPTIONS=%JAVA_TOOL_OPTIONS%& set ANT_HOME=%ANT_HOME%& set CLASSPATH=%CLASSPATH% 363 365
Note:
See TracChangeset
for help on using the changeset viewer.