jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nauke. <nau...@gmail.com>
Subject Re: cactifywar doesn't support the nested classpath element
Date Wed, 11 Jun 2008 02:10:06 GMT
ok this is what worked for me:

test ant target:

    <target name="test" depends="test.prepare"
        description="Run the tests on the defined containers">

      <!-- Run the tests -->
      <cactus warfile="${project.build.dir}/test.war" fork="yes"
          <path refid="project.classpath"/>
          <pathelement location="${httpunit.jar}"/>
          <pathelement location="${nekohtml.jar}"/>
          <pathelement location="${target.classes.java.dir}"/>
          <pathelement location="${target.classes.cactus.dir}"/>
        <containerset timeout="180000"/>
        <formatter type="brief" usefile="false"/>
        <formatter type="xml"/>
          <fileset dir="${src.cactus.dir}">
            <include name="**/Test*.java"/>
            <exclude name="**/Test*All.java"/>

test.prepare ant target:

    <target name="test.prepare" depends="war.myproject,compile.cactus">
      <!-- Cactify the web-app archive -->
      <cactifywar srcfile="${project.build.dir}/${war.file}"
        <classes dir="${project.build.dir}/test/"/>

so calling the test target doesn't throw the nested exception.

I do have another problem though:
Parse error in application web.xml file at
java.lang.IllegalArgumentException: Servlet mapping specifies an unknown
servlet name ServletRedirector

which I might put in a new post.

Thanks Petar for your help!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message