opale_to_optim.ant 1.03 KB
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 31 32
<project name="ProjetOpale" default="convert">

	<!-- Beginning -->
	<target name="convert">
		<antcall target="clean_everything" />	  	
		<antcall target="opale_to_hdoc" />
		<antcall target="hdoc_to_optim" />
		<antcall target="copy_optim_output" />
	</target>
	
	<target name="clean_everything">
		<delete dir="../opale_to_hdoc/input"/>
		<delete dir="../opale_to_hdoc/output/result.hdoc"/>
		<delete dir="../hdoc_to_optim/input"/>
		<delete dir="../hdoc_to_optim/output/result.scar"/>
	</target>
	
	<target name="opale_to_hdoc">
		<copy tofile="../opale_to_hdoc/input/sample.scar" file="input/sample.scar"/>
		<ant antfile="../opale_to_hdoc/opale_to_hdoc.ant" inheritAll="false"/>
	</target>
	
	<target name="hdoc_to_optim">
		<copy tofile="../hdoc_to_optim/input/sample.hdoc" file="../opale_to_hdoc/output/result.hdoc"/>
		<ant antfile="../hdoc_to_optim/hdoc_to_optim.ant" inheritAll="false"/>
	</target>
	
	<target name="copy_optim_output">
		<copy tofile="output/result.scar" file="../hdoc_to_optim/output/result.scar"/>
	</target>
	
</project>