jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin West <mar...@objectgizmos.com>
Subject samples servlet test classes
Date Mon, 22 Sep 2008 20:53:31 GMT

Another observation, all the test classes are in src/main/java. You can
move them to the standard location, then remove the testSource and
testClass from surefire plugin configuration and add the following
plugin to the pom at the start of the plugins section.

        <property name="finalName"
          value="${pom.build.finalName}" />
antfile="${basedir}/build-antrun.xml">							    <target
name="copy-test-classes" />

then create build-antrun.xml ...

<project name="antrun" default="default">
  <target name="default">
    <echo message="default"/>
  <target name="copy-test-classes">
    <copy todir="target/${finalName}/WEB-INF/classes">
     <fileset dir="target/test-classes"/>

   Martin West

View raw message