1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!-- This file is part of the DITA Open Toolkit project.
|
---|
3 | See the accompanying license.txt file for applicable licenses. -->
|
---|
4 | <!-- (c) Copyright IBM Corp. 2006 All Rights Reserved. -->
|
---|
5 | <project name="dita.integrator" default="strict" basedir=".">
|
---|
6 |
|
---|
7 | <dirname property="ant.file.dita.integrator.dir" file="${ant.file.dita.integrator}"/>
|
---|
8 |
|
---|
9 | <!-- First try to initialize ${dita.dir} using the special
|
---|
10 | property passed by Ant's import task. -->
|
---|
11 | <condition property="dita.dir" value="${ant.file.dita.integrator.dir}">
|
---|
12 | <and>
|
---|
13 | <isset property="ant.file.dita.integrator"/>
|
---|
14 | <not>
|
---|
15 | <isset property="dita.dir"/>
|
---|
16 | </not>
|
---|
17 | </and>
|
---|
18 | </condition>
|
---|
19 |
|
---|
20 | <!-- Try to initialize ${dita.dir} again if it was not set. -->
|
---|
21 | <!-- Deprecated -->
|
---|
22 | <condition property="dita.dir" value="${basedir}">
|
---|
23 | <not>
|
---|
24 | <isset property="dita.dir"/>
|
---|
25 | </not>
|
---|
26 | </condition>
|
---|
27 |
|
---|
28 | <path id="dost.class.path">
|
---|
29 | <pathelement location="${dita.dir}${file.separator}lib${file.separator}dost.jar"/>
|
---|
30 | </path>
|
---|
31 |
|
---|
32 | <!-- Deprecated -->
|
---|
33 | <condition property="properties" value="${dita.dir}${file.separator}integrator.properties">
|
---|
34 | <not>
|
---|
35 | <isset property="properties"/>
|
---|
36 | </not>
|
---|
37 | </condition>
|
---|
38 |
|
---|
39 | <taskdef name="integrate" classname="org.dita.dost.platform.IntegratorTask">
|
---|
40 | <classpath refid="dost.class.path"/>
|
---|
41 | </taskdef>
|
---|
42 |
|
---|
43 | <target name="integrate">
|
---|
44 | <condition property="strict" value="false">
|
---|
45 | <not>
|
---|
46 | <isset property="strict"/>
|
---|
47 | </not>
|
---|
48 | </condition>
|
---|
49 | <integrate ditadir="${dita.dir}" properties="${properties}" strict="${strict}"/>
|
---|
50 | </target>
|
---|
51 |
|
---|
52 | <target name="lax" description="Run integration in lax mode">
|
---|
53 | <antcall target="integrate">
|
---|
54 | <param name="strict" value="false"/>
|
---|
55 | </antcall>
|
---|
56 | </target>
|
---|
57 |
|
---|
58 | <target name="strict" description="Run integration in strict mode">
|
---|
59 | <antcall target="integrate">
|
---|
60 | <param name="strict" value="true"/>
|
---|
61 | </antcall>
|
---|
62 | </target>
|
---|
63 |
|
---|
64 | </project>
|
---|