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

    	<delete dir="${outputPath}" failonerror="false"/>
		<mkdir dir="${outputPath}"/>
    	<!-- <delete>
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}">
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"/>	
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}">
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}" >
26 27
			<fileset dir="${outputHdocToBasex}"/>
		</copy>
simei.yin's avatar
simei.yin committed
28 29
	
	</target>
30 31

		
simei.yin's avatar
simei.yin committed
32 33
	<target name="clean" depends="AllFiles">         
		<!-- clean temp files -->
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
		
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
		
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
		
52 53
		<delete includeemptydirs="true" verbose="true">
			<fileset dir="${outputHdocToBasex}"/> 
simei.yin's avatar
simei.yin committed
54
		</delete>	
55 56 57 58
	</target> 	

</project>