etherpad_to_lexique.ant 2.03 KB
Newer Older
1
2
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myantce" default="main">
3
    <property file="etherpad_to_lexique.properties"/>    
Jean Vintache's avatar
Jean Vintache committed
4
    <!-- CHECK FOR OS FAMILY -->
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    <condition property="is_windows">
        <os family="windows"/>
    </condition>
    <condition property="is_unix">
        <os family="unix"/>
    </condition>

    <target name="to_hdoc_windows" if="${is_windows}">
        <delete>
            <fileset dir="${eth_in}">
                <include name="*.html"/>
            </fileset>
        </delete>
        <copy file="input/pad.html" todir="${eth_in}"/>
        <exec dir="../etherpad_to_hdoc" executable="run.bat"/>
    </target>
    
Jean Vintache's avatar
Jean Vintache committed
22
    <target name="to_hdoc_unix" if="${is_unix}">
23
24
25
26
27
28
29
30
31
        <delete>
            <fileset dir="${eth_in}">
                <include name="*.html"/>
            </fileset>
        </delete>
        <copy file="input/pad.html" todir="${eth_in}"/>
        <exec dir="../etherpad_to_hdoc" executable="run.sh"/>
    </target>
    
Jean Vintache's avatar
Jean Vintache committed
32
    <target name="to_lex_unix" if="${is_unix}">
33
        <delete>
34
            <fileset dir="${lex_in}">
35
36
37
                <include name="*.hdoc"/>
            </fileset>
        </delete>
Jean Vintache's avatar
Jean Vintache committed
38
        <copy file="${eth_out}/pad.hdoc" todir="${lex_in}"/>
39
40
        <exec dir="../hdoc_to_lexique" executable="run.sh"/>
        <copy file="${lex_out}/*.scar" todir="output"/>        
41
42
    </target>
    
43
    <target name="to_lex_windows" if="${is_windows}">
44
        <delete>
45
            <fileset dir="${lex_in}">
46
47
48
                <include name="*.hdoc"/>
            </fileset>
        </delete>
Jean Vintache's avatar
Jean Vintache committed
49
        <copy file="${eth_out}/pad.hdoc" todir="${lex_in}"/>
50
        <exec dir="../hdoc_to_lexique" executable="run.bat"/>
51
        <mkdir dir="output"/>
52
53
54
        <copy todir="output">
            <fileset dir="${lex_out}"/>
        </copy>
55
56
57
    </target>
        
    <target name="main">
Jean Vintache's avatar
Jean Vintache committed
58
        <antcall target="to_hdoc_unix"/>
59
        <antcall target="to_hdoc_windows"/>
Jean Vintache's avatar
Jean Vintache committed
60
        <antcall target="to_lex_unix"/>        
61
        <antcall target="to_lex_windows"/>        
62
63
64
    </target>
    
</project>