Changeset 5252
- Timestamp:
- 2003-08-22T10:03:59+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r5238 r5252 68 68 import org.greenstone.gatherer.undo.UndoManager; 69 69 import org.greenstone.gatherer.util.ArrayTools; 70 import org.greenstone.gatherer.util.Codec; 70 71 import org.greenstone.gatherer.util.GSDLSiteConfig; 71 72 import org.greenstone.gatherer.util.MetadataXML; … … 805 806 806 807 public void makeCollection(String description, String email, String name, String title) { 808 // Encode the description so it is safe to write to shell 809 if(Utility.isWindows()) { 810 description = Codec.transform(description, Codec.TEXT_TO_SHELL_WINDOWS); 811 } 812 else { 813 description = Codec.transform(description, Codec.TEXT_TO_SHELL_UNIX); 814 } 807 815 // Run the mkcol command. 808 816 String command[]; … … 913 921 JOptionPane.showMessageDialog(Gatherer.g_man, get("Preview_Ready"), get("Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE); 914 922 } 915 else if(event.get Type() == GShell.BUILD && event.getStatus() == GShell.ERROR) {923 else if(event.getStatus() == GShell.ERROR) { 916 924 JOptionPane.showMessageDialog(Gatherer.g_man, get("Preview_Ready_Failed"), get("Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE); 925 Gatherer.g_man.collectionChanged(ready()); 917 926 } 918 927 }
Note:
See TracChangeset
for help on using the changeset viewer.