Changeset 17514 for release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/exe/PropertyLoaderFilter.java
- Timestamp:
- 2008-10-10T09:05:07+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/ant-installer/src/org/tp23/antinstaller/runtime/exe/PropertyLoaderFilter.java
r15210 r17514 40 40 import org.tp23.antinstaller.runtime.VersionHelper; 41 41 import org.tp23.antinstaller.runtime.exe.ExecuteRunnerFilter.AbortException; 42 43 42 44 43 /** … … 60 59 public class PropertyLoaderFilter implements ExecuteFilter { 61 60 62 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack");63 64 61 public static final String LOAD = "true"; 65 62 public static final String PROMPT = "prompt"; … … 128 125 129 126 if( foundProps && PROMPT.equals(loadDefaults) ) { 130 load = ctx.getMessageRenderer().prompt( res.getString("promptLoadDefaults"));127 load = ctx.getMessageRenderer().prompt(org.tp23.antinstaller.Installer.langPack.getString("promptLoadDefaults")); 131 128 } 132 129 else if( foundProps && PROMPT_AUTO.equals(loadDefaults)) { 133 load = ctx.getMessageRenderer().prompt( res.getString("promptLoadDefaults"));130 load = ctx.getMessageRenderer().prompt(org.tp23.antinstaller.Installer.langPack.getString("promptLoadDefaults")); 134 131 } 135 132 else if( foundProps && LOAD.equals(loadDefaults) ) { … … 159 156 // let major versions pass but prompt for differences 160 157 if( (! ctx.isAutoBuild()) && helper.majorVersionCompatible(configVersion , propertiesVersion) ){ 161 if( ! ctx.getMessageRenderer().prompt( res.getString("propertiesVersionMismatch")) ){158 if( ! ctx.getMessageRenderer().prompt(org.tp23.antinstaller.Installer.langPack.getString("propertiesVersionMismatch")) ){ 162 159 throw new AbortException("Install Aborted: existing configuration is not compatible, config version: " + configVersion); 163 160 } … … 224 221 if(field instanceof PasswordTextInput) { 225 222 if(value == null ){ 226 ctx.getMessageRenderer().printMessage( res.getString("promptMissingDefaultPassword"));223 ctx.getMessageRenderer().printMessage(org.tp23.antinstaller.Installer.langPack.getString("promptMissingDefaultPassword")); 227 224 228 225 }
Note:
See TracChangeset
for help on using the changeset viewer.