Amakihi can be run directly from Ant in two ways:
There are a couple of things that you need to keep in mind:
jaxp.properties
as appropriate.${ant.home}/lib directory).<!-- ======================================================================= --> <!-- Run an Amakihi Script --> <!-- ======================================================================= -->
<project name="Amakihi Test" default="testEmbedded" basedir=".">
<taskdef name="amakihi" classname="ca.intelliware.amakihi.fixture.ant.AmakihiTestTask"/>
<target name="testExternal">
<amakihi validating="true" file="./amakihiBase/src/ca/intelliware/amakihi/fixture/tests/CookieExample.xml" />
</target>
<target name="testEmbedded">
<amakihi validating="true"><![CDATA[
<a:tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://amakihi.sourceforge.net/schemas/script.xsd http://amakihi.sourceforge.net/schemas/alpha2/script.xsd"
xmlns:a="http://amakihi.sourceforge.net/schemas/script.xsd">
<a:script description="Test the Request Headers servlet">
<a:actors>
<a:webClient name="browser">
<a:httpHeaders>
<a:property name="Accept-Language" value="en-us" />
</a:httpHeaders>
</a:webClient>
</a:actors>
<a:action actorName="browser" methodName="open" description="get the page">
<a:input>http://localhost:8080/examples/servlet/RequestHeaderExample</a:input>
<a:output format="sample" rules="dontStartAtTop">
<tr><td bgcolor="#CCCCCC">Accept-Language</td><td>en-us</td></tr>
</a:output>
</a:action>
</a:script>
</a:tests>
]]></amakihi> </target>
</project>