-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-sii.xml
42 lines (37 loc) · 1.59 KB
/
build-sii.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
41
42
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="dharma-test">
<!-- Macrodef taken from tlrobinson.net blog-->
<macrodef name = "git">
<attribute name = "command" />
<attribute name = "dir" default = "" />
<element name = "args" optional = "true" />
<sequential>
<echo message = "git @{command}" />
<exec executable = "git" dir = "@{dir}">
<arg value = "@{command}" />
<args/>
</exec>
</sequential>
</macrodef>
<macrodef name = "git-clone-pull">
<attribute name = "repository" />
<attribute name = "dest" />
<sequential>
<git command = "clone">
<args>
<arg value = "@{repository}" />
<arg value = "@{dest}" />
</args>
</git>
<git command = "pull" dir = "@{dest}" />
</sequential>
</macrodef>
<!-- git clone then pull -->
<git-clone-pull repository="https://github.com/erc-dharma/project-documentation.git" dest="project-documentation" />
<fileset id="xmlFiles" dir="./sii-corpus" excludes="*_footnotes.xml *_tables*.xml"/>
<!-- Transformation XML vers HTML -->
<xslt force="true" style="./project-documentation/stylesheets/sii/sii-display.xsl" destdir="./workflow-output" extension=".html" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="xmlFiles"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
</project>