Automatically start a new transformation after another
Posted: Tue Sep 06, 2022 11:24 am
Hello,
I am currently in a situation where I need, first, to apply a normalized DITA transformation. Then, with the source created, automatically start a second transformation with the new generated map and applying an HTML5 transtype.
Currently, my build.xml takes this form and I just would like to make sure I am on the right track:
Does it sound correct to you?
I am currently in a situation where I need, first, to apply a normalized DITA transformation. Then, with the source created, automatically start a second transformation with the new generated map and applying an HTML5 transtype.
Currently, my build.xml takes this form and I just would like to make sure I am on the right track:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<project name="build-dita-html5" default="all" basedir=".">
<target name="all" description="build dita and html5" depends="dita,html5"/>
<target name="dita" description="build DITA">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="../tzmp-test.ditamap"/>
<property name="transtype" value="dita"/>
<property name="output.dir" location="../out/dita"/>
<property name="args.gen.task.lbl" value="YES"/>
</ant>
</target>
<target name="html5" description="build html5">
<ant antfile="${dita.dir}/build.xml">
<property name="args.input" location="../out/dita/tzmp-test.ditamap"/>
<property name="transtype" value="html5"/>
<property name="output.dir" location="../out/html5"/>
<property name="args.gen.task.lbl" value="YES"/>
<property name="args.rellinks" value="nofamily"/>
</ant>
</target>
</project>