Changeset 17622 for release-kits/shared/ant-installer/src/org/tp23/antinstaller/input/DirectoryInput.java
- Timestamp:
- 2008-10-29T16:18:29+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/shared/ant-installer/src/org/tp23/antinstaller/input/DirectoryInput.java
r17569 r17622 31 31 * @version $Id: DirectoryInput.java,v 1.5 2007/01/28 10:25:48 teknopaul Exp $ 32 32 */ 33 public class DirectoryInput 34 33 34 public class DirectoryInput extends OSSpecific { 35 35 36 36 private boolean abort = false; 37 37 private String create; 38 38 private String checkExists; 39 40 //to detect previous installations 41 private String flagFile; 42 private String flagFileExistsProperty; 39 43 40 44 public DirectoryInput() { … … 119 123 } 120 124 125 public String getFlagFile() { 126 return flagFile; 127 } 128 129 public void setFlagFile(String flagFile) { 130 this.flagFile = flagFile; 131 } 132 133 public String getFlagFileExistsProperty() { 134 return flagFileExistsProperty; 135 } 136 137 public void setFlagFileExistsProperty( String flagFileExistsProperty ) { 138 this.flagFileExistsProperty = flagFileExistsProperty; 139 } 140 121 141 /** 122 142 * Used by checkConfig to validate the configuration file. … … 154 174 } 155 175 176 public void setInputResult(String inputResult) { 177 resultContainer.setProperty(getProperty(), inputResult); 178 179 if ( flagFile != null ) { 180 File ff = new File( inputResult + File.separator + flagFile ); 181 Boolean ffExists = new Boolean(ff.exists()); 182 resultContainer.setProperty( flagFileExistsProperty, ffExists.toString() ); 183 } 184 185 } 186 187 156 188 }
Note:
See TracChangeset
for help on using the changeset viewer.