adding typ filename and path gives me an error

Hi, Everything is in the subject. If I run mkgmap with the pathname and name of my .typ file, it gives me an error. If I copy my xxxx.TYP file in the same directory as mkgmap and give no path on the command line, it works. The error is the following one : Exception in thread "main" java.lang.IllegalArgumentException: File extension is wrong size at uk.me.parabola.imgfmt.sys.Dirent.setExt(Dirent.java:213) at uk.me.parabola.imgfmt.sys.Dirent.<init>(Dirent.java:81) at uk.me.parabola.imgfmt.sys.Directory.create(Directory.java:75) at uk.me.parabola.imgfmt.sys.ImgFS.create(ImgFS.java:141) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.copyFile(GmapsuppBuilder.java:285) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.addFile(GmapsuppBuilder.java:189) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.addAllFiles(GmapsuppBuilder.java:160) at uk.me.parabola.mkgmap.combiners.GmapsuppBuilder.onFinish(GmapsuppBuilder.java:109) at uk.me.parabola.mkgmap.main.Main.endOptions(Main.java:326) at uk.me.parabola.mkgmap.CommandArgsReader.readArgs(CommandArgsReader.java:123) at uk.me.parabola.mkgmap.main.Main.main(Main.java:100) Francois --

Hi Francois, From IRC logs: 20:59 burto> try changing line 78 of Dirent.java to use lastIndexOf() rather than indexOf() 21:00 burto> that's src/uk/me/parabola/imgfmt/sys/Dirent.java See if that fixes your problem. Cheers, Mark
participants (2)
-
frmas
-
Mark Burton