Clay,

you're using FOP from the command-line exclusively, right? In that case
resetting the image cache will bring you absolutely nothing, because
there's no cache between calls to FOP as each time a new VM is started.
resetCache() is only having an effect if you're running FOP in a server
process.

resetCache() simply releases the memory used by the cached images. When
calling FOP from the command-line the memory is also released when the
VM exits. So there's no point in creating a CLI for resetCache(), I'm
afraid.

On 05.05.2004 19:10:41 Clay Leeds wrote:
> Oop! Never mind. I didn't think it was a CLASSPATH issue, because 
> fop.bat worked fine (w2k). However, it was a CLASSPATH issue. I ended up 
> inserting the CLASSPATH call from fop.bat as follows in front of the 
> java call, and it seems to have worked:
> 
>    set CLASSPATH="C:/[insert_long_line_of_FOP_CLASSPATH_stuff]";
>    java org.apache.fop.image.FopImageFactory.resetCache()
> 
> and it didn't error out.
> 
> Thanks for listening!
> 
> Web Maestro Clay
> 
> p.s. It might be nice to add a CLI for resetting FOP's image cache. 
> (Maybe I'll do that some time... :-))


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to