Changeset 18240 for greenstone3
- Timestamp:
- 2008-12-17T18:47:43+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
greenstone3/trunk/src/java/org/greenstone/admin/gui/Mat.java
r18236 r18240 90 90 static String oai_folder; 91 91 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!"; 97 97 98 98 public Mat(){} … … 567 567 String timestamp = getTimestamp(); 568 568 569 updateLOG("Download",msg , timestamp);570 adaptee.setCommandStatus("Download");569 //updateLOG("Download",msg , timestamp); 570 //adaptee.setCommandStatus("Download"); 571 571 } 572 572 else if(button.getName().equalsIgnoreCase("control_description") || button.getName().equalsIgnoreCase("description_control")){ … … 580 580 String msg = createInfoMsg(button.getName()); 581 581 String timestamp = getTimestamp(); 582 updateLOG("Install", msg , timestamp);582 //updateLOG("Install", msg , timestamp); 583 583 } 584 584 else if(button.getName().equalsIgnoreCase("Install_option")){ … … 629 629 630 630 public void downloadExtension(){ 631 System.out.println("start downloading");632 631 SVNDownloadThread download = new SVNDownloadThread(adaptee, ExtPane.message_textarea ,adaptee.url, adaptee.destination_folder, adaptee.extension_name); 633 632 download.start(); … … 641 640 642 641 public void install_configuration(){ 642 File buildProperty = new File (adaptee.install_options_filePath); 643 if(!buildProperty.exists()) { return; } 643 644 Object[][] temp = adaptee.getConfiguration(adaptee.install_options_filePath); 644 645 ExtensionConfigurePrompt ecp = new ExtensionConfigurePrompt(temp,adaptee.install_options_filePath,adaptee.extension_name,"Configure Install Settings"); … … 648 649 public void configure_option(){ 649 650 String gsdl3Home = adaptee.get_GSDL3HOME(); 651 File buildProperty = new File (adaptee.extension_runtimeProperty_path); 652 if(!buildProperty.exists()) { return; } 650 653 Object[][] temp = adaptee.getConfiguration(adaptee.extension_runtimeProperty_path); 651 654 ExtensionConfigurePrompt ecp = new ExtensionConfigurePrompt(temp,adaptee.extension_runtimeProperty_path,adaptee.extension_name,"Configure Runtime Settings"); … … 663 666 664 667 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"; 666 669 } 667 670 else if (step.equalsIgnoreCase(adminUI_Pane.INSTALL)){ … … 701 704 702 705 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 710 708 if(!fileExist){ 711 709 logFile.createNewFile();
Note:
See TracChangeset
for help on using the changeset viewer.