Changeset 17514 for release-kits/shared/ant-installer/src/org/tp23/antinstaller/input/DirectoryInput.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/input/DirectoryInput.java
r15210 r17514 34 34 extends OSSpecific { 35 35 36 private static final ResourceBundle res = ResourceBundle.getBundle("resources.LanguagePack");37 38 39 36 private boolean abort = false; 40 37 private String create; … … 54 51 if( "".equals(selectedName) ){ 55 52 if( InputField.isTrue(create) || InputField.isTrue(checkExists) ){ 56 mr.printMessage( res.getString("dirNotExist"));53 mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("dirNotExist")); 57 54 return false; 58 55 } … … 65 62 if(!file.exists()){ 66 63 try { 67 if(mr.prompt( res.getString("dirNotExistCreate") + "\n" + file.getAbsolutePath())){64 if(mr.prompt(org.tp23.antinstaller.Installer.langPack.getString("dirNotExistCreate") + "\n" + file.getAbsolutePath())){ 68 65 boolean ok = file.mkdirs(); 69 66 if(!ok){ 70 mr.printMessage( res.getString("dirNotCreated"));67 mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("dirNotCreated")); 71 68 } 72 69 } 73 70 } 74 71 catch (Exception ex) { 75 mr.printMessage( res.getString("canNotCreateFile") + "\n" + file.getAbsolutePath());72 mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("canNotCreateFile") + "\n" + file.getAbsolutePath()); 76 73 //FIXME should not throw here, should do something better so users on linux can chmod where necessary 77 74 // then try again 78 throw new ValidationException( res.getString("canNotCreateFile"),ex);75 throw new ValidationException(org.tp23.antinstaller.Installer.langPack.getString("canNotCreateFile"),ex); 79 76 80 77 } … … 86 83 // } 87 84 if(!file.exists() || !file.isDirectory()){ 88 mr.printMessage( res.getString("dirNotExist") + "\n" + file.getAbsolutePath());85 mr.printMessage(org.tp23.antinstaller.Installer.langPack.getString("dirNotExist") + "\n" + file.getAbsolutePath()); 89 86 return false; 90 87 }
Note:
See TracChangeset
for help on using the changeset viewer.