blob: a4766ceff36f89ecc7ce9eef0157201aea8169cf [file] [log] [blame]
<?xml version="1.0"?>
<project name="WriteOutputContractTask" default="main" basedir="..">
<!-- You can write a sub task class which extends 'TaskProductionForAnt.java',and rewrite the execute() method.
You can get the TaskProductionContext from the ant task by use getContext() method.
-->
<!-- Define the ant tasks -->
<taskdef name="writeAndReadContractInTask" description="Write output contracts use ant task."
classname="org.eclipse.egf.example.task.ant.tasks.WriteAndReadContractInTask">
<classpath>
<pathelement location="${basedir}/bin" />
</classpath>
</taskdef>
<!-- Exectute the task -->
<target name="main">
<!--
Extends the 'TaskProductionForAnt.java' to write or read contracts by rewriting 'execute()' method.
See 'WriteAndReadContractInTask.java'.
-->
<writeAndReadContractInTask>
<!-- You can also writing or reading contracts in script directly-->
<WriteOUT name="output_parameter_string" value="hello" type="type:string" />
<ReadIN name="input_parameter_string" type="type:string" />
</writeAndReadContractInTask>
</target>
</project>