Please try compiling under JDK 1.4.2. FOP 0.20.5 was released before JDK 1.5 came out. You might be able to avoid certain problems.
On 22.08.2005 16:56:24 Borut Hadþialiã wrote: > On 8/22/05, Borut Hadþialiã <[EMAIL PROTECTED]> wrote: > > On 8/22/05, Jeremias Maerki <[EMAIL PROTECTED]> wrote: > > > Only if you implement it yourself by changing the source code. > > > > > > On 22.08.2005 14:46:42 Borut Hadþiali¿ wrote: > > > > is there a way to specify the fontBaseDir property using a > > > > command-line option directly, > > > > instead of using "-c" and a configuration file, when executing > > > > org.apache.fop.apps.Fop? > > > > > > > > Something like "-fontBaseDir <somedir>". > > > > > > > > > Jeremias Maerki > > > > > > > Thanks, I will do that then. > > > > -- > > Why? > > Because YES! > > > > I believe that adding this code: > > else if (args[i].equals("-fontBaseDir")) { > if ((i + 1 == args.length) > || (args[i + 1].charAt(0) == '-')) { > throw new FOPException("if you use '-fontBaseDir', > you must specify the path to the fonts directory"); > } else { > > org.apache.fop.configuration.Configuration.put("fontBaseDir",new > File(args[i + 1])); > i++; > } > } > > at org/apache/fop/apps/CommandLineOptions.java, line 194, after first '{' > > would enable that option. > > Unfortunately I have some trouble compiling the Fop source > distribution (with and without the add). > > I have set the source="1.5" in the javac task in Fop Ant BuildFile > (without it the compiler complains about 'enum' being used as an > identificator). > > The compilation returns this error: > > [javac] > D:\borut\eclipse_workspace\FopCustomization\build\src\org\apache\fop\svg\PDFGraphics2D.java:1242: > org.apache.fop.svg.PDFGraphics2D.PDFGraphicsConfiguration is not > abstract and does not override abstract method > createCompatibleVolatileImage(int,int,int) in > java.awt.GraphicsConfiguration > [javac] static class PDFGraphicsConfiguration extends > GraphicsConfiguration { > [javac] ^ > > Software involved is: > > apache-ant-1.6.1 > jdk1.5.0_03 > apache-ant-1.6.1 > > operating system is Windows Xp, gonna try the same thing on Debian > when I get home ;p > > -- > Why? > Because YES! Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]