Finally got it working. I wasn't able to reproduce the error, but it was
obviously a syntax problem in my build.xml file.
I'm posting this in case anyone is looking for a sample build.xml file for
CFCUnit. This is what worked for me.
My test project\cfc structure
c:\cfusionmx\wwwroot\CFCUnit_Example\com\AllTests.cfc
<?xml version="1.0" encoding="UTF-8"?>
<project default="test" name="MyTest" basedir="." >
<property name="cfcUnitLib" value="c:\cfusionmx\wwwroot\cfcunit\lib" />
<property name="hostname" value="127.0.0.1" />
<property name="port" value="8500" />
<echo message="cfcUnitLib ${cfcUnitLib}" />
<echo message="hostname ${hostname}" />
<echo message="port ${port}" />
<taskdef resource="org/cfcunit/ant/antlib.xml">
<classpath>
<pathelement location="${cfcUnitLib}\ant-cfcunit.jar"/>
</classpath>
</taskdef>
<target name="test">
<cfcunit
verbose="true"
haltonfailure="true"
haltonerror="true"
showstacktrace="true">
<service hostname="${hostname}" port="${port}"/>
<testclass name="CFCUnit_Example.com.AllTests"/>
</cfcunit>
</target>
</project>
Hope this helps someone
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:289801
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4