I was unable to get core:useBean and core:invoke to invoke a class that lives in my project's test dir. I kept getting class not found exceptions. Anyone know how to do this? Here's my painful, ugly workaround using ant:exec:


<goal name="testperformance:captioningresponse">
<j:set var="maven.test.skip" value="true"/>
<attainGoal name="test:compile"/>
<property name="maven.dependency.classpath" refid="maven.dependency.classpath"/>

<property name="fullclasspath" value="${maven.build.dest}${path.separator}${maven.test.dest}${path.separator}${maven.dependency.classpath}"/>
<!--
<echo>!!!! fullclasspath=${fullclasspath}</echo>
-->


<!-- NOTE: this assumes you already have the war deployed and running at the proper place -->
<!-- Couldn't get useBean/invoke to work, never could find class
<j:useBean var="testPerformanceCaptioningResponse"
class="com.vms.ccgateway.test.performance.TestPerformanceCaptioningResponse"


/>
<j:invoke method="performTest"
on="${testPerformanceCaptioningResponse}"/>
-->
<ant:exec executable="java.exe">
<arg line="-cp '${fullclasspath}' com.vms.ccgateway.test.performance.TestPerformanceCaptioningResponse"/>
</ant:exec>
</goal>




Thanks,
Chad

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to