I have the following cactus task defined.
For some reason the <cactusproperty> isn't working.
I can not see the log files.
<cactus warfile="${test.home}/${app.name}.war"
fork="yes" failureproperty="tests.failed" haltonerror="true">
<classpath>
<path refid="tests.classpath"/>
<pathelement path="${build.home}/testsrc/properties"/>
<pathelement location="${build.home}/WEB-INF/classes"/>
<pathelement location="${build.home}/testsrc.jar"/>
<pathelement location="${lib.dir}/log4j"/>
</classpath>
<!-- Configure the cactus task for logging -->
<cactusproperty server="false"
propertiesFile="${basedir}/${cactus.dir}/properties/log_client.properties"/>
<cactusproperty server="true"
propertiesFile="${basedir}/${cactus.dir}/properties/log_server.properties"/>
<containerset>
<tomcat5x if="cactus.home.tomcat5x"
dir="${catalina.home}" serverxml="${basedir}/conf/server.xml"
port="${cactus.port}"
output="${test.home}/cactusreports/tomcat5x.out"
todir="${test.home}/cactusreports"/>
</containerset>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<batchtest>
<fileset dir="${testsrc}">
<include name="**/*Test.java"/>
<exclude name="**/*TestAll.java"/>
</fileset>
</batchtest>
</cactus>
On a side not I notice CactusStrutsTestCase doesn't log messages when I try
to log them with log4j. When I use System.out.println I see them in the
"tomcat5x.out" log file.
Am I doing something wrong?
Thanks