ruper2/src/java/core/org/krysalis/ruper/query DefaultQueryEngine.java,1.6,1.7

[email protected]
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/query
In directory sc8-pr-cvs1:/tmp/cvs-serv11617/src/java/core/org/krysalis/ruper/query

Modified Files:
	DefaultQueryEngine.java 
Log Message:
Renamed Simple Logger to Standard (since it writes to StdOut)
More work on logging and messages

Index: DefaultQueryEngine.java
===================================================================
RCS file: /cvsroot/metamorphosis/ruper2/src/java/core/org/krysalis/ruper/query/DefaultQueryEngine.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** DefaultQueryEngine.java	18 Sep 2003 20:15:40 -0000	1.6
--- DefaultQueryEngine.java	23 Sep 2003 00:19:17 -0000	1.7
***************
*** 31,36 ****
  		throws RuperException {
  
! 		DebugUtils.printSeparator();
! 		DebugUtils.dump(query);
  
  		//
--- 31,38 ----
  		throws RuperException {
  
! 		if (Logger.getLog().isDebug()) {
! 			DebugUtils.printSeparator();
! 			DebugUtils.dump(query);
! 		}
  
  		//
***************
*** 101,111 ****
  				Messages.getString(MessageConstants.NO_RESOURCES_FOUND));
  		else {
! 			DebugUtils.printSeparator();
  			DebugUtils.dump("All Results", results);
  
  			groupBy(result, results, groupBy);
  
! 			DebugUtils.printSeparator();
! 			DebugUtils.dump("Grouped Results", result);
  
  			//
--- 103,117 ----
  				Messages.getString(MessageConstants.NO_RESOURCES_FOUND));
  		else {
! 			
! 			if (Logger.getLog().isDebug()) {
! 				DebugUtils.printSeparator();
  			DebugUtils.dump("All Results", results);
+ 			}
  
  			groupBy(result, results, groupBy);
  
! 			
! 			if (Logger.getLog().isDebug()) {DebugUtils.printSeparator();
! 			DebugUtils.dump("Grouped Results", result);}
  
  			//
***************
*** 113,122 ****
  			//
  			if (null == orderBy)
! 				orderBy = StandardResourceComparisons.getNameTypeVersionComparatorSet();
  
  			orderBy(result, orderBy);
  
! 			DebugUtils.printSeparator();
! 			DebugUtils.dump("Final (Grouped/Ordered) Results", result);
  
  		}
--- 119,131 ----
  			//
  			if (null == orderBy)
! 				orderBy =
! 					StandardResourceComparisons
! 						.getNameTypeVersionComparatorSet();
  
  			orderBy(result, orderBy);
  
! 			
! 			if (Logger.getLog().isDebug()) {DebugUtils.printSeparator();
! 			DebugUtils.dump("Final (Grouped/Ordered) Results", result);}
  
  		}




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.