Create or replace a file
The format of the <method>
element
for creating or replacing a file is:
<method methodName="file.createOrReplaceFile">
Use
this method to replace an existing file with the same name or to create
the file, if it does not exist. The <method>
element
contains one or more <file>
elements each of which
identifies a file to create or replace. The content of the <file>
element
becomes the content of the new file. For more information, see <file>.
Example
This example creates or replaces
a file named hello.txt in the OMNIbusWebGUI.war directory
and sets the contents of the file to the text "Hello world
".
<methodCall>
<method methodName="file.createOrReplaceFile">
<file fileName="hello.txt" toDir"data">
</file>
</method>
<methodCall>