Ignore:
Timestamp:
2008-10-29T16:18:29+13:00 (16 years ago)
Author:
oranfry
Message:

extra options to directory chooser and page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/ant-installer/src/org/tp23/antinstaller/input/DirectoryInput.java

    r17569 r17622  
    3131 * @version $Id: DirectoryInput.java,v 1.5 2007/01/28 10:25:48 teknopaul Exp $
    3232 */
    33 public class DirectoryInput
    34     extends OSSpecific {
     33
     34public class DirectoryInput extends OSSpecific {
    3535
    3636    private boolean abort = false;
    3737    private String create;
    3838    private String checkExists;
     39
     40    //to detect previous installations
     41    private String flagFile;
     42    private String flagFileExistsProperty;
    3943
    4044    public DirectoryInput() {
     
    119123    }
    120124
     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
    121141    /**
    122142     * Used by checkConfig to validate the configuration file.
     
    154174    }
    155175
     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
    156188}
Note: See TracChangeset for help on using the changeset viewer.