[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book/sword s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Fri Mar 18 08:43:53 MST 2005


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/sword
In directory www.crosswire.org:/tmp/cvs-serv30338/java/jsword/org/crosswire/jsword/book/sword

Modified Files:
	GZIPBackend.java 
Log Message:
better debug

Index: GZIPBackend.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/sword/GZIPBackend.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** GZIPBackend.java	4 Mar 2005 04:04:47 -0000	1.29
--- GZIPBackend.java	18 Mar 2005 15:43:51 -0000	1.30
***************
*** 105,117 ****
          File baseurl = new File(rootPath, dataPath);
          String path = baseurl.getAbsolutePath();
!         String allButLast = path + File.separator + SwordConstants.FILE_OT + '.' + blockType.getIndicator() + SUFFIX_PART1;
!         idxFile[SwordConstants.TESTAMENT_OLD] = new File(allButLast + SUFFIX_INDEX);
!         textFile[SwordConstants.TESTAMENT_OLD] = new File(allButLast + SUFFIX_TEXT);
!         compFile[SwordConstants.TESTAMENT_OLD] = new File(allButLast + SUFFIX_COMP);
  
!         allButLast = path + File.separator + SwordConstants.FILE_NT + '.' + blockType.getIndicator() + SUFFIX_PART1;
!         idxFile[SwordConstants.TESTAMENT_NEW] = new File(allButLast + SUFFIX_INDEX);
!         textFile[SwordConstants.TESTAMENT_NEW] = new File(allButLast + SUFFIX_TEXT);
!         compFile[SwordConstants.TESTAMENT_NEW] = new File(allButLast + SUFFIX_COMP);
  
          // It is an error to be neither OT nor NT
--- 105,117 ----
          File baseurl = new File(rootPath, dataPath);
          String path = baseurl.getAbsolutePath();
!         String otAllButLast = path + File.separator + SwordConstants.FILE_OT + '.' + blockType.getIndicator() + SUFFIX_PART1;
!         idxFile[SwordConstants.TESTAMENT_OLD] = new File(otAllButLast + SUFFIX_INDEX);
!         textFile[SwordConstants.TESTAMENT_OLD] = new File(otAllButLast + SUFFIX_TEXT);
!         compFile[SwordConstants.TESTAMENT_OLD] = new File(otAllButLast + SUFFIX_COMP);
  
!         String ntAllButLast = path + File.separator + SwordConstants.FILE_NT + '.' + blockType.getIndicator() + SUFFIX_PART1;
!         idxFile[SwordConstants.TESTAMENT_NEW] = new File(ntAllButLast + SUFFIX_INDEX);
!         textFile[SwordConstants.TESTAMENT_NEW] = new File(ntAllButLast + SUFFIX_TEXT);
!         compFile[SwordConstants.TESTAMENT_NEW] = new File(ntAllButLast + SUFFIX_COMP);
  
          // It is an error to be neither OT nor NT
***************
*** 119,122 ****
--- 119,123 ----
              && !textFile[SwordConstants.TESTAMENT_NEW].canRead())
          {
+             log.error("Failed to find OT or NT files: '" + otAllButLast + SUFFIX_TEXT + "' and '" + ntAllButLast + SUFFIX_TEXT + "'"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
              throw new BookException(Msg.MISSING_FILE, new Object[] { path });
          }



More information about the jsword-svn mailing list