From Rational® Publishing Engine,
you can to run commands that post process the results before and after
the publishing process.
Purpose
From Rational Publishing Engine,
you can to run commands that post process the results before and after
the publishing process. Each output must have a new entry command where
you can specify the command to run. You can use the output file path
in the command using the$output variable that is
maintained by Rational Publishing Engine.
The post processing command will be implemented for the entire document
generation and not for each output. This enables you to handle all
the outputs in a single place for tasks such as archiving at a single
instance. The command is introduced through a new property in the
metadata: post-command. A matching pre-command is added for completion.
The output formats are referenced in the command using the form: ${word}, ${html}, ${pdf}, ${xslfo}.
Alternatively, you can reference the output by index ${1}, ${2}, ${3},
${4}.
An example of a Batch command.
cmd
/C copy ${Word} d:\test\output.doc
An example of a
JavaScript
command//!JavaScript
var x = Word;
var y = DocumentName;
java.lang.System.out.println( "X+Y=" + x + y);
1;