opale_to_basex.ant 1.55 KB
Newer Older
Baptiste Montange's avatar
Baptiste Montange committed
1
<project name="opale_to_basex" default="clean">
simei.yin's avatar
simei.yin committed
2
3
    <property file="build.properties"/>
	
Baptiste Montange's avatar
Baptiste Montange committed
4
    <target name="AllFiles">
Baptiste Montange's avatar
Baptiste Montange committed
5
6
7
8

    	<delete dir="${outputPath}" failonerror="false"/>
		<mkdir dir="${outputPath}"/>
    	<!-- <delete>
Baptiste Montange's avatar
Baptiste Montange committed
9
    		<fileset dir="${outputPath}" />
Baptiste Montange's avatar
Baptiste Montange committed
10
    	</delete> -->
simei.yin's avatar
simei.yin committed
11
12
13
		
		<!-- Copy input files into input folder of project opale_to_hdoc and execute it -->
		<copy todir="${inputOpaleToHdoc}">
Baptiste Montange's avatar
Baptiste Montange committed
14
15
			<fileset dir="${inputPath}"/>
		</copy>
simei.yin's avatar
simei.yin committed
16
		<ant antfile="../opale_to_hdoc/opale_to_hdoc.ant" inheritAll="false"/>	
Baptiste Montange's avatar
Baptiste Montange committed
17

simei.yin's avatar
simei.yin committed
18
19
		<!-- Copy input files into input folder of project hdoc_to_basex and execute it -->
		<copy todir="${inputHdocToBasex}">
Baptiste Montange's avatar
Baptiste Montange committed
20
21
			<fileset dir="${outputOpaleToHdoc}"/>
		</copy>
simei.yin's avatar
simei.yin committed
22
23
24
25
		<ant antfile="../hdoc_to_basex/hdoc_to_basex.ant" inheritAll="false"/>
		
		<!-- copy output files into output of this projet -->
		<copy todir="${outputPath}" >
Baptiste Montange's avatar
Baptiste Montange committed
26
27
			<fileset dir="${outputHdocToBasex}"/>
		</copy>
simei.yin's avatar
simei.yin committed
28
29
	
	</target>
Baptiste Montange's avatar
Baptiste Montange committed
30
31

		
simei.yin's avatar
simei.yin committed
32
33
	<target name="clean" depends="AllFiles">         
		<!-- clean temp files -->
Baptiste Montange's avatar
Baptiste Montange committed
34
35
36
37
38
		<delete includeemptydirs="true" verbose="true">
			<fileset dir="${inputOpaleToHdoc}"> 
				 <include name="*.scar"/>
			</fileset>
		</delete>
simei.yin's avatar
simei.yin committed
39
		
Baptiste Montange's avatar
Baptiste Montange committed
40
41
42
43
44
		<delete includeemptydirs="true" verbose="true">
			<fileset dir="${outputOpaleToHdoc}"> 
				 <include name="*.hdoc"/>
			</fileset>
		</delete>
simei.yin's avatar
simei.yin committed
45
		
Baptiste Montange's avatar
Baptiste Montange committed
46
47
48
49
50
		<delete includeemptydirs="true" verbose="true">
			<fileset dir="${inputHdocToBasex}">
				 <include name="*.hdoc"/>
			</fileset>
		</delete>
simei.yin's avatar
simei.yin committed
51
		
Baptiste Montange's avatar
Baptiste Montange committed
52
53
		<delete includeemptydirs="true" verbose="true">
			<fileset dir="${outputHdocToBasex}"/> 
simei.yin's avatar
simei.yin committed
54
		</delete>	
Baptiste Montange's avatar
Baptiste Montange committed
55
56
57
58
	</target> 	

</project>