On 05 Jun 2009, at 22:18, Andreas Delmelle wrote:

Hi Bharat

On 05 Jun 2009, at 22:05, attaluri1210 wrote:

..., I noticed when checking the code that we test for resourceFile.canWrite(), and the Java API docs explicitly state that it returns true "if and only if the file system actually contains a file denoted by this abstract pathname /and/ the application is allowed to write to the file". So, if the file does not exist, canWrite() will return false and leads to the cited error message.

I'll see if I can add a small change that creates the file if it does not exist, before the call to canWrite(). I'll let you know when this is done, so you can update your copy of trunk.

As an interim solution, I have made a change to org.apache.fop.render.afp.AFPRendererConfigurator, and attached the patch in attach.

Before I commit it to the trunk, can you try and apply the patch locally on your end, and report back on whether that eliminates the error message?

Attachment: afp-resource-config.patch
Description: Binary data


Thanks!

Andreas

Andreas Delmelle
mobile: +32-484-916.196
e-mail: andreas.delmelle.AT.telenet.be
Skype: adlm0608
Jabber: mandr...@jabber.org






---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to