Changeset 25947

Show
Ignore:
Timestamp:
13.07.2012 15:35:25 (7 years ago)
Author:
ak19
Message:

Makejar.bat now includes all the dictionary.properties files. The earlier omission (where only a few language properties files were included) was only noticeable when you move the classes folder out of the way so that the old GLI.jar generated did not find the additional properties files in the classes folder when these were missing in the GLI.jar file itself.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/makejar.bat

    r25682 r25947  
    141141winutil\zip.exe -r metadata.zip metadata >NUL 
    142142 
     143 
     144:: Build up a list of all the loose files in the classes directory, which includes  
     145:: both feedback.properties and all dictionary*.properties files, since they all need  
     146:: to be included in the resulting GLI.jar file. 
     147:: This type of FOR statement does not recurse into subdirs, which is what we want 
     148:: as we want to include all the loose files in the toplevel classes dir in GLI.jar 
     149::for %%G in (classes\*.properties) do echo file is %%G 
     150set propfiles= 
     151for %%G in (classes\*) do (call :concat %%G) 
     152::echo Property files list: %propfiles% 
     153goto :jarcmd 
     154 
     155:concat 
     156set propfiles=%propfiles% %1 
     157goto :eof 
     158 
     159:jarcmd 
    143160:: Jar everything up 
    144 "%JARPATH%\jar" cf GLI.jar .java.policy metadata.zip %optional% help -C classes dictionary.properties -C classes dictionary_es.properties -C classes dictionary_fr.properties -C classes dictionary_ru.properties -C classes feedback.properties -C classes images -C classes xml -C jar com -C jar de -C jar org 
     161::"%JARPATH%\jar" cf GLI.jar .java.policy metadata.zip %optional% help -C classes dictionary.properties -C classes dictionary_es.properties -C classes dictionary_fr.properties -C classes dictionary_ru.properties -C classes feedback.properties -C classes images -C classes xml -C jar com -C jar de -C jar org 
     162 
     163:: include all the properties (and other loose) files in the toplevel classes directory into the GLI.jar 
     164:: (Do something similar to get any and all folders inside the toplevel jar folder included into GLI.jar?) 
     165"%JARPATH%\jar" cf GLI.jar .java.policy metadata.zip %optional% help %propfiles% -C classes images -C classes xml -C jar com -C jar de -C jar org 
     166 
    145167 
    146168:: Tidy up