Changeset 14818 for gli

Show
Ignore:
Timestamp:
19.11.2007 11:26:54 (12 years ago)
Author:
anna
Message:

when creating new collection fails, pass the name of the new collection to CollectionManager?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/shell/GShell.java

    r14305 r14818  
    165165        if(line_buffer.length() > 0) { 
    166166        String line = line_buffer.toString(); 
    167         // DebugStream.println("* " + line + " *"); 
     167        // DebugStream.println("* " + line + " *");      
    168168        fireMessage(type, typeAsString(type) + "> " + line, status, bos); 
    169169        line_buffer = new StringBuffer(); 
     
    242242         
    243243        InputStreamReader eisr = new InputStreamReader( prcs.getErrorStream(), "UTF-8" ); 
    244         InputStreamReader stdisr = new InputStreamReader( prcs.getInputStream(), "UTF-8"  ); 
     244        InputStreamReader stdisr = new InputStreamReader( prcs.getInputStream(), "UTF-8"  );         
    245245     
    246246        StringBuffer eline_buffer = new StringBuffer(); 
     
    545545        concerned = null; 
    546546    } 
     547     
     548    String msg = ""; 
     549    // If we are creating collection and have trouble with permissions, we need more messages 
     550    if(status == ERROR && type == GShell.NEW){ 
     551      msg = args[args.length-1]; 
     552    } 
    547553    // And firing off an event 
    548     GShellEvent event = new GShellEvent(this, 0, type, "", status); 
     554    GShellEvent event = new GShellEvent(this, 0, type, msg, status); 
    549555    Object[] concerned = listeners.getListenerList(); 
    550556    for(int i = 0; i < concerned.length ; i++) {