Jeroen,

Do you mean that the serializer does not overwrite an existing file? Does it produce an error?

There is definitely code that deletes the file if it already exists. There is also code detecting the last modification date of the file, and does not overwrite it if the caching algorithm determines that the file does not need to be rewritten.

You can enable debug logging by adding the following to your log4j.xml:

<category name="org.orbeon.oxf.processor.serializer.FileSerializer">
    <priority value="debug"/>
</category>

You may see a "File doesn't need rewrite" logged if the file is not rewritten.

In your case, is this behavior incorrect?

-Erik

[EMAIL PROTECTED] wrote:

Hello,

The File Serializer processor, doesn't rewrite files once they've been
created in the following pipeline to store instance data:

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline";
          xmlns:oxf="http://www.orbeon.com/oxf/processors";
          xmlns:xu="http://www.xmldb.org/xupdate";>
 <p:param name="instance" type="input"/>

 <p:processor name="oxf:file-serializer">
  <p:input name="config">
   <config>
    <file>output</file>
    <directory>/tmp</directory>
   </config>
  </p:input>
  <p:input name="data" href="#instance"/>
 </p:processor>
</p:config>


Am I missing something, or is this a bug?


Cheers, Jeroen



------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to