hdoc_to_mongo.ant 950 Bytes
Newer Older
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
<project name="hdoc_to_optim" default="unzipSource">

	<property file="build.properties"/>
	
	<target name="preparation">
        <mkdir dir="${hdocdir}"/>
        <chmod perm="777" dir="${hdocdir}"></chmod>
		<delete dir="${outputPath}" />
        <mkdir dir="${outputPath}"/>
        <chmod perm="777" dir="${outputPath}"></chmod>
    </target>
	
    <target name="unzipSource" depends="preparation">
        <fileset dir="${inputPath}" id="hdocFile">
            <include name="*.hdoc"/>
        </fileset>      
        <pathconvert property="hdocFilePath" pathsep="" refid="hdocFile" />
        
        <echo>Entry file : ${hdocFilePath}</echo>
		
		<!--unzips the hdoc to be converted-->
		<unzip dest="${hdocdir}" src ="${hdocFilePath}"/>
    </target>
	
	<target name="clean" depends="unzipSource">
        <delete file="get_content.ant"/>
        <delete file="get_ressources.ant"/>
		<delete dir="${hdocdir}" />
    </target>
</project>