-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
54 lines (47 loc) · 2.32 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?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="./xml-provisional" includes="*.xml"/>
<fileset id="htmlFiles" dir="./workflow-output/editedxml" includes="*.xml"/>
<!-- Transformation XML vers XML -->
<xslt force="true" style="./project-documentation/editorialStylesheets/tpl-editorialConvention.xsl" destdir="./workflow-output/editedxml" extension=".xml" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="xmlFiles"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<regexpmapper from="(.*)" to="EDITED_\1"/>
</xslt>
<!-- Transformation XML vers HTML -->
<xslt force="true" style="./project-documentation/stylesheets/inscriptions/start-edition-with-bibl.xsl" destdir="./workflow-output/html" extension=".html" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="htmlFiles"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<regexpmapper from="EDITED_(.*).xml" to="\1.html"/>
</xslt>
<!-- supprimer les fichiers résultant des étapes intermédiaires -->
<!--<delete dir="./texts/editedxml"/>-->
</project>