-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
40 lines (39 loc) · 1.25 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
<?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 simple DITA glossentry can be transformed into an XLIFF 2.1 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=\".*\""
replace="id="""
/>
<replaceregexp
file="${basedir}/out/translate.xlf"
flags="gi"
match="dataRefEnd=\".*\""
replace="dataRefEnd="""
/>
<replaceregexp
file="${basedir}/out/translate.xlf"
flags="gi"
match="dataRefStart=\".*\""
replace="dataRefStart="""
/>
<compare-output
expectation="${basedir}/expected.xlf"
result="${basedir}/out/translate.xlf"
/>
</target>
</project>