Changeset 18240

Show
Ignore:
Timestamp:
17.12.2008 18:47:43 (10 years ago)
Author:
cc108
Message:

fix some bugs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • greenstone3/trunk/src/java/org/greenstone/admin/gui/Mat.java

    r18236 r18240  
    9090    static String oai_folder; 
    9191     
    92     static final String InstallCompleteMsg = "The extension (Mat) has been downloaded successfully."; 
    93     static final String InstallErrorMsg =  "Sorry, the extension (Mat) could not be downloadeded. Please try again!"; 
    94      
    95     static final String DownloadCompleteMsg = "The extension (Mat) has been installed successfully."; 
    96     static final String DownloadErrorMsg =  "Sorry, the extension (Mat) could not be installed. Please try again!"; 
     92    static final String InstallCompleteMsg = "The extension (Mat) has been installed successfully."; 
     93    static final String InstallErrorMsg =  "Sorry, the extension (Mat) could not be installed. Please try again!"; 
     94     
     95    static final String DownloadCompleteMsg = "The extension (Mat) has been downloaded successfully."; 
     96    static final String DownloadErrorMsg =  "Sorry, the extension (Mat) could not be downloaded. Please try again!"; 
    9797     
    9898    public Mat(){} 
     
    567567        String timestamp = getTimestamp(); 
    568568     
    569         updateLOG("Download",msg , timestamp); 
    570         adaptee.setCommandStatus("Download"); 
     569        //updateLOG("Download",msg , timestamp); 
     570        //adaptee.setCommandStatus("Download"); 
    571571    } 
    572572    else if(button.getName().equalsIgnoreCase("control_description") || button.getName().equalsIgnoreCase("description_control")){ 
     
    580580        String msg = createInfoMsg(button.getName()); 
    581581        String timestamp = getTimestamp(); 
    582         updateLOG("Install", msg , timestamp); 
     582        //updateLOG("Install", msg , timestamp); 
    583583    } 
    584584    else if(button.getName().equalsIgnoreCase("Install_option")){ 
     
    629629 
    630630    public void downloadExtension(){ 
    631         System.out.println("start downloading"); 
    632631    SVNDownloadThread download = new SVNDownloadThread(adaptee, ExtPane.message_textarea ,adaptee.url, adaptee.destination_folder, adaptee.extension_name); 
    633632    download.start(); 
     
    641640     
    642641    public void install_configuration(){ 
     642    File buildProperty = new File (adaptee.install_options_filePath); 
     643    if(!buildProperty.exists()) { return; } 
    643644    Object[][] temp = adaptee.getConfiguration(adaptee.install_options_filePath); 
    644645    ExtensionConfigurePrompt ecp = new ExtensionConfigurePrompt(temp,adaptee.install_options_filePath,adaptee.extension_name,"Configure Install Settings"); 
     
    648649    public void configure_option(){ 
    649650    String gsdl3Home = adaptee.get_GSDL3HOME(); 
     651    File buildProperty = new File (adaptee.extension_runtimeProperty_path); 
     652    if(!buildProperty.exists()) { return; } 
    650653    Object[][] temp = adaptee.getConfiguration(adaptee.extension_runtimeProperty_path); 
    651654    ExtensionConfigurePrompt ecp = new ExtensionConfigurePrompt(temp,adaptee.extension_runtimeProperty_path,adaptee.extension_name,"Configure Runtime Settings"); 
     
    663666     
    664667    if(step.equalsIgnoreCase(adminUI_Pane.DOWNLOAD)){ 
    665         info = "The extension Mat has been download to local folder"; 
     668        info = "The extension Mat has been downloaded to local folder"; 
    666669    } 
    667670    else if (step.equalsIgnoreCase(adminUI_Pane.INSTALL)){ 
     
    701704         
    702705        File logDir = new File(adaptee.extension_log_directory); 
    703         if(logDir.mkdirs()){ 
    704             //System.out.println("The log folder has been created"); 
    705         } 
    706         else{ 
    707             //System.out.println("The system cannot create log folder"); 
    708         } 
    709         //System.out.println("file exist?" + fileExist); 
     706        if(logDir.mkdirs()){} 
     707 
    710708        if(!fileExist){ 
    711709            logFile.createNewFile();