wiki_to_opale.ant 1.55 KB
Newer Older
1
2
3
4
5
<?xml version="1.0" encoding="UTF-8"?>
<project name="wikiToOpale" default="main" basedir="..">
    
    <!-- inputFile is the only required parameter to run the script -->
    <property name="inputFile"               value="source.xml"/>
6
    <!-- Name of the output file -->
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
    <basename property="filename"            file="${inputFile}" suffix=".xml"/>
    
    <!-- Folder paths -->
    <!-- tmp paths (removed at the end of the process) -->
    <property name="tmpFolderPath"           value="${basedir}/tmp"/>
    <property name="tmpHdocResultFolderPath" value="${tmpFolderPath}/hdoc"/>
    <!-- ant and xslt paths -->
    <property name="resultFolderPath"        value="${basedir}/result"/>
    <property name="antFolderPath"           value="${basedir}/ant"/>
    <property name="xsltFolderPath"          value="${basedir}/xslt"/>
    <!-- result path -->
    <property name="hdocResultPath"          value="${resultFolderPath}/${filename}"/>
    
    <target name="main">
        <!-- First: wiki to Hdoc -->
        <ant antfile="${antFolderPath}/wiki_to_hdoc.ant"/>
        
        <!-- Then hdoc to opale (important to set the new basedir in order to make it work) -->
        <ant antfile="${basedir}/hdoc_to_opale/hdoc_to_opale.ant" dir="${basedir}/hdoc_to_opale">
            <property name="InputPath" value="${hdocResultPath}/${filename}.hdoc"/>
            <property name="OutputPath" value="${hdocResultPath}/${filename}.scar"/>
28
            <property name="OutputPathDivided" value="${hdocResultPath}/${filename}_divided.scar"/>
29
30
31
        </ant>
    </target>
</project>