On 05 Jun 2009, at 22:05, attaluri1210 wrote:
Thanks for the reply. Actually i created a file now named
testresources.afp
and it did not give the error. Now it's not showing the error but my
concern
is will it not create the resources file if it does not exist?
The config file seems OK...
Aha! Now that you mention it, 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.
Seems like somebody has not tested their code thoroughly enough... :-(
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.
I'm quite surprised no one noticed this earlier.
I am not sure that it is writing the resources to that file.. Can
you guide
me how can i check if the resources are being added to the resources
file.
Not sure... I'm no AFP-expert, but maybe this can be checked by
opening the file in an AFP viewer application (?)
Should that file be with an extension afp?
I don't think the .afp extension is mandatory, but then, in the
meantime I'm so used to working on platforms where a file extension
has no inherent special meaning... I could be mistaken.
and will that file need to be present in the printers resources
location?
No idea. I'm sorry, but I would suppose so.
Sorry for too many questions.. Many questions because i am loving
FOP day by
day.
In that case, you're forgiven :-)
Seriously, no problem at all. Better ask one question too many, than
making one too many faulty assumption.
Regards & Keep FOP'ing
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