Update of /cvsroot/nutch/nutch/src/java/net/nutch/tools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7055/src/java/net/nutch/tools

Modified Files:
        ParseSegment.java 
Log Message:
Minor bug fixes for better handling of both Fetcher.java and ParseSegment.java


Index: ParseSegment.java
===================================================================
RCS file: /cvsroot/nutch/nutch/src/java/net/nutch/tools/ParseSegment.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ParseSegment.java   26 Oct 2004 00:03:15 -0000      1.1
--- ParseSegment.java   27 Oct 2004 07:30:13 -0000      1.2
***************
*** 162,166 ****
            }
  
!           if (fetcherOutput.getStatus() == FetcherOutput.SUCCESS) {
              handleContent(url, content);
              synchronized (ParseSegment.this) {
--- 162,169 ----
            }
  
!           // if fetch was successful or
!           // previously unable to parse (so try again)
!           if (fetcherOutput.getStatus() == FetcherOutput.SUCCESS ||
!               fetcherOutput.getStatus() == FetcherOutput.CANT_PARSE) {
              handleContent(url, content);
              synchronized (ParseSegment.this) {
***************
*** 563,567 ****
  
      for (int i = 0; i < args.length; i++) {
!       if (args[i].equals("-threads")) {
          threadCount =  Integer.parseInt(args[++i]);
        } else if (args[i].equals("-showThreadID")) {
--- 566,572 ----
  
      for (int i = 0; i < args.length; i++) {
!       if (args[i] == null) {
!           continue;
!       } else if (args[i].equals("-threads")) {
          threadCount =  Integer.parseInt(args[++i]);
        } else if (args[i].equals("-showThreadID")) {
***************
*** 573,579 ****
        } else if (args[i].equals("-noClean")) {
          clean = false;
-       } else if (i != args.length-1) {
-         System.err.println(usage);
-         System.exit(-1);
        } else {
          directory = args[i];
--- 578,581 ----



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Nutch-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to