Changeset 3946
- Timestamp:
- 2003-03-20T14:54:44+12:00 (21 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3/service
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Construct.java
r3937 r3946 234 234 get_status_only = true; 235 235 } 236 System.out.println("get status only = "+get_status_only);237 236 if (get_status_only) { 238 237 // at the moment, delete is synchronous. but it may take ages so should do the command in another thread maybe? in which case we will want to ask for status … … 480 479 get_status_only = true; 481 480 } 482 System.out.println("get status only = "+get_status_only);483 481 484 482 // just check for status messages if that's all that's required 485 483 if (get_status_only) { 486 System.out.println("in get status only bit");487 484 String id = (String)params.get(HANDLE_PARAM); 488 485 GS2PerlListener listener = (GS2PerlListener)listeners_.get(id); … … 503 500 504 501 } 505 System.out.println("not in get status only bit");506 502 507 503 // do teh actual command -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2MGPPSearch.java
r3938 r3946 435 435 default: 436 436 // should never get here 437 System. out.println("wrong query type!!");437 System.err.println("GS2MGPPSearch: wrong query type!!"); 438 438 return null; 439 439 } … … 471 471 String basedir = GSFile.collectionBaseDir(site_home_, cluster_name_); 472 472 String indexdir = GSFile.collectionIndexPath(cluster_name_, index); 473 System.out.println("Base directory: " + basedir);474 System.out.println("Index directory: " + indexdir);475 473 476 474 mgpp_src_.loadIndexData(basedir, indexdir); … … 615 613 } 616 614 617 System.out.println("final query = "+final_query.toString());618 615 return final_query.toString(); 619 616 } … … 657 654 } 658 655 659 System.out.println("final query = "+final_query.toString());660 656 return final_query.toString(); 661 657 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2MGSearch.java
r3875 r3946 136 136 Vector docs = mqr.getDocs(); 137 137 if (docs.size() == 0) { 138 System. out.println("Warning: No results found...\n");138 System.err.println("GS2MGSearch: Warning: No results found...\n"); 139 139 } 140 140 -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Retrieve.java
r3938 r3946 198 198 name); 199 199 if (node_extra == null) { 200 System. out.println("haven't found extra info for classifier named "+name);200 System.err.println("GS2REtrieve: haven't found extra info for classifier named "+name); 201 201 continue; 202 202 } … … 433 433 if (param.getAttribute(GSXML.NAME_ATT) == "structure") { 434 434 String structure = GSXML.getValue(param); 435 // System.out.println("Structure desired: " + structure);436 435 437 436 // This is NOT locale sensitive … … 535 534 addDescendants(current, doc_id, true); 536 535 } 537 //System.out.println("the result of structure retrieve is");538 //System.out.println(converter_.getString(result));539 536 return result; 540 537 } … … 585 582 if (param.getAttribute(GSXML.NAME_ATT) == "metadata") { 586 583 String metadata = GSXML.getValue(param); 587 System.out.println("Metadata desired: " + metadata);588 584 metadata_list.add(metadata); 589 585 } … … 605 601 Element request_node = (Element) request_nodes.item(i); 606 602 String node_id = request_node.getAttribute(GSXML.NODE_ID_ATT); 607 System.out.println("Retrieving metadata for " + node_id + "...");608 609 603 610 604 if (OID.needsTranslating(node_id)) { -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Search.java
r3939 r3946 150 150 name); 151 151 if (node_extra == null) { 152 System. out.println("haven't found extra info for index named "+name);152 System.err.println("GS2Search: haven't found extra info for index named "+name); 153 153 continue; 154 154 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/PhindPhraseBrowse.java
r3937 r3946 150 150 } 151 151 phrase = findPhraseNumberFromWord( word); 152 System.out.println("phind, term number for "+word+" is "+phrase);153 152 } 154 153 if (phrase==0) { -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/ServiceRack.java
r3937 r3946 198 198 break; 199 199 } catch (NoSuchMethodException e) { 200 System.out.println("method not found for this class, trying super class");201 200 c = c.getSuperclass(); 202 201 } catch (SecurityException e) { 203 System. out.println("security exception for finding a method, returning null");202 System.err.println("ServiceRack.process: security exception for finding method "+method_name+", returning null"); 204 203 return null; 205 204 } … … 211 210 212 211 } catch (Exception e) { 213 System. out.println("ServiceRack: Trying to call a processService type method (process"+to+") on a subclass("+this.getClass().getName()+"), but an exception happened:"+e.toString());212 System.err.println("ServiceRack.process: Trying to call a processService type method (process"+to+") on a subclass("+this.getClass().getName()+"), but an exception happened:"+e.toString()); 214 213 return null; 215 214 } 216 215 } else { 217 System. out.println("no method found");216 System.err.println("ServiceRack.process: method "+method_name+" not found for class "+this.getClass().getName()); 218 217 } 219 218 if (response !=null) { … … 222 221 223 222 } catch (ClassNotFoundException e) { 224 System. out.println("ServiceRack error:element class not found");223 System.err.println("ServiceRack error: Element class not found"); 225 224 return null; 226 225 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/XSLTServices.java
r3945 r3946 114 114 transformer.transform(source,result); 115 115 } catch (Throwable t) { 116 System. out.println("Error printing XML in XSLTService::configure()");116 System.err.println("Error printing XML in XSLTService::configure()"); 117 117 } 118 118 return true;
Note:
See TracChangeset
for help on using the changeset viewer.