-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
54 lines (47 loc) · 2.42 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" />
<git-clone-pull repository="https://github.com/erc-dharma/mdt-texts.git" dest="mdt-texts" />
<fileset id="xmlFiles" dir="./texts/xml" includes="*.xml"/>
<fileset id="htmlFiles" dir="./texts/editedxml" includes="*.xml"/>
<fileset id="mdtFiles" dir="./mdt-texts/output" includes="DHARMA_mdt_INSPandya*.xml"/>
<!-- Transformation XML vers HTML -->
<xslt failOnNoResources="false" force="true" style="./project-documentation/stylesheets/inscriptions/start-edition-with-bibl.xsl" destdir="./texts/htmloutput" extension=".html" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="xmlFiles"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
<regexpmapper from="(.*).xml" to="\1.html"/>
</xslt>
<!-- supprimer les fichiers résultant des étapes intermédiaires -->
<!--<delete dir="./texts/editedxml"/>-->
<xslt failOnNoResources="false" force="true" style="./project-documentation/stylesheets/mdt_inscriptions/mdtText-display.xsl" destdir="./metadata" extension=".html" useImplicitFileset="false" classpath="./project-documentation/editorialStylesheets/pipelineTools/saxon9he.jar">
<fileset refid="mdtFiles"/>
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
</xslt>
</project>