Re: [OpenMap Users] MakeToc problem?

From: Marc D. Benstein <MARC.D.BENSTEIN_at_saic.com>
Date: Mon, 20 Oct 2008 16:41:31 -0600

On Mon, 2008-10-20 at 15:32 -0700, Dan Goldberg wrote:

> Does anyone know if anything changed regarding this behavior in
> OpenMap 4.6.4? We haven’t actually tried creating an A.TOC in a while
> so I’m not sure when it stopped working (for us at least).

MakeToc isn't working in 4.6.4 or in CVS. I posted a patch last week.
See subject make toc.

Here's the patch it's been working fine for me.

Index: openmap/src/openmap/com/bbn/openmap/io/FileInputReader.java
--- openmap/src/openmap/com/bbn/openmap/io/FileInputReader.java Base
(1.5)
+++ openmap/src/openmap/com/bbn/openmap/io/FileInputReader.java Locally
Modified (Based On 1.5)
_at_@ -55,7 +55,7 @@
         if (Debug.debugging("binaryfile")) {
             Debug.output("FileInputReader created from " +
f.getAbsolutePath());
         }
- name = f.getAbsolutePath();
+ name = f.getName();
         inputFile = init(f);
     }
 
_at_@ -73,8 +73,9 @@
         if (Debug.debugging("binaryfile")) {
             Debug.output("FileInputReader created from " + f);
         }
- name = f;
- inputFile = init(new File(f));
+ File file = new File(f);
+ name = file.getName();
+ inputFile = init(file);
     }
 
     /**


-- 
Marc Benstein
SAIC
(505) 830-6763
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Oct 20 2008 - 18:42:11 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT