opale_to_basex.ant 1.46 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
5
6
7
    <target name="AllFiles">
    	<delete>
    		<fileset dir="${outputPath}" />
    	</delete>
simei.yin's avatar
simei.yin committed
8
9
10
		
		<!-- Copy input files into input folder of project opale_to_hdoc and execute it -->
		<copy todir="${inputOpaleToHdoc}">
Baptiste Montange's avatar
Baptiste Montange committed
11
12
			<fileset dir="${inputPath}"/>
		</copy>
simei.yin's avatar
simei.yin committed
13
		<ant antfile="../opale_to_hdoc/opale_to_hdoc.ant" inheritAll="false"/>	
Baptiste Montange's avatar
Baptiste Montange committed
14

simei.yin's avatar
simei.yin committed
15
16
		<!-- Copy input files into input folder of project hdoc_to_basex and execute it -->
		<copy todir="${inputHdocToBasex}">
Baptiste Montange's avatar
Baptiste Montange committed
17
18
			<fileset dir="${outputOpaleToHdoc}"/>
		</copy>
simei.yin's avatar
simei.yin committed
19
20
21
22
		<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
23
24
			<fileset dir="${outputHdocToBasex}"/>
		</copy>
simei.yin's avatar
simei.yin committed
25
26
	
	</target>
Baptiste Montange's avatar
Baptiste Montange committed
27
28

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

</project>