-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
28 lines (27 loc) · 913 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
This file is part of the DITA-OT Translate Plug-in project.
See the accompanying LICENSE file for applicable licenses.
-->
<project basedir="." default="unit-test">
<import file="../bootstrap.xml"/>
<description>
Expect that a DITA glossentry can be transformed into an XLIFF 1.2 file
</description>
<target name="unit-test">
<delete dir="${basedir}/out" failonerror="false"/>
<delete dir="${basedir}/temp" failonerror="false"/>
<exec-transtype transtype="xliff-create"/>
<order-xliff file="${basedir}/out/translate.xlf"/>
<replaceregexp
file="${basedir}/out/translate.xlf"
flags="gi"
match="id=\".*\" translate"
replace="id="" translate"
/>
<compare-output
expectation="${basedir}/expected.xlf"
result="${basedir}/out/translate.xlf"
/>
</target>
</project>