Create a custom transformation target
The IXIA CCMS Output Generator build files, also called the conductor files, contain the Apache Ant targets that direct the final output processing.
A conductor file is a standard Ant build file that contains one project and at least one target.
Targets are defined in your client conductor file, such as
%OutputGenDir%/data/conductor-acme.xml in a
<target>
element.
To run a transformation scenario, a target usually goes through the following process:
- Prepare the environment
- Prepare the content for the transformation
- Create the
build.bat
file andbuild.properties
files - Run
build.bat
- Clean up the files
-
Input directory retrieves the files from the Content Store and stores them in this directory, defined with the
outgen.job.source.dir
Ant property.Note: If you need to modify the files before transforming them, you need to modify them in the input directory.Note: If you are working with a branched map or a map that includes content from different cycles, such as authoring, published, and localization, you must call theflatten
target before modifying the source files. Theflatten
target will copy all the files to the input directory so that you can modify them as required. -
Output directory
- For CCMS Desktop, it returns any file stored in this directory at the end of the transformation job in a zip file
- For CCMS Web, it returns any file stored in this directory at the end of the transformation job to the app server
Note: This directory is defined with the outgen.job.output.dir property. Regularly clear your directory and keep all the files you must return to the user.
dita2pdf.custom.wrapper
target transforms
DITA files into PDF format.
<target name="dita2pdf.custom.wrapper" depends="default_dependencies, flatten, resolve_container_keyref, extract_LowRes_images">
<echostart>dita2pdf.custom.wrapper</echostart>
<ot_build_add_pdfrenderer/>
<ot_build_add_ditaval_ifpresent/>
<ot_build_clean_ot_temp/>
<ot_build_keep_topicfo/>
<ot_build_set_parameter name="transtype" value="pdf2"/>
<!-- <ot_build_set_parameter name="args.rellinks" value="none"/> -->
<!-- <ot_build_set_parameter name="args.draft" value="no"/> -->
<ot_build_set_parameter name="args.draft" value="${outgen.job.userparam.dita2.pdfcustom.args.draft}"/>
<ot_build_set_parameter name="args.chapter.layout" value="${outgen.job.userparam.dita2pdf.custom.args.chapter.layout}"/>
<ot_build_set_parameter name="args.rellinks" value="${outgen.job.userparam.dita2.pdfcustom.args.rellinks}"/>
<dita_startcmd_ot_build/>
<clean_ot_output/>
<!-- Set the property job.keep.temp to preserve the completed temp folder of the task -->
<!--<property name="job.keep.temp" value="yes"/>-->
<echoend>dita2pdf.custom.wrapper</echoend>
</target>
Since conductor files are like programming files, each target is different and does not follow a specific structure, unlike output type or processor files. You can create a target that transforms DITA files to PDF using the DITA Open Toolkit, but you can create many different types of targets.
To create a custom transformation target: