Make it work with Cactus tests using HttpUnit

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113475 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2003-06-07 15:42:20 +00:00
parent 73ddcb9885
commit c8b0c973cf

View File

@ -30,12 +30,12 @@
<ant:path id="cactus.classpath">
<pathelement location="${plugin.getDependencyPath('cactus:cactus-ant')}"/>
<pathelement location="${plugin.getDependencyPath('cactus:cactus')}"/>
<pathelement location="${plugin.getDependencyPath('commons-logging')}"/>
<pathelement location="${plugin.getDependencyPath('junit')}"/>
<pathelement location="${plugin.getDependencyPath('commons-httpclient')}"/>
<pathelement location="${plugin.getDependencyPath('commons-logging:commons-logging')}"/>
<pathelement location="${plugin.getDependencyPath('junit:junit')}"/>
<pathelement location="${plugin.getDependencyPath('commons-httpclient:commons-httpclient')}"/>
<pathelement location="${plugin.getDependencyPath('aspectj:aspectjrt')}"/>
<pathelement location="${plugin.getDependencyPath('httpunit')}"/>
<pathelement location="${plugin.getDependencyPath('nekohtml')}"/>
<pathelement location="${plugin.getDependencyPath('httpunit:httpunit')}"/>
<pathelement location="${plugin.getDependencyPath('nekohtml:nekohtml')}"/>
<pathelement location="${plugin.getDependencyPath('xerces:xercesImpl')}"/>
<pathelement location="${plugin.getDependencyPath('xerces:xmlParserAPIs')}"/>
</ant:path>
@ -137,18 +137,26 @@
<ant:classes dir="${cactus.target.classes.dir}"/>
<!-- Orion fails on a servlet filter that is not mapped to an actual
resource, to trick it -->
<filterredirector mapping="/test/filterRedirector.jsp"/>
<!-- Orion fails on a servlet filter that is not mapped to an actual
resource, to trick it -->
<filterredirector mapping="/test/filterRedirector.jsp"/>
<!-- Files needed for JBoss -->
<ant:classes dir="${plugin.resources}/jboss3x">
<ant:include name="*.properties" if="cactus.home.jboss3x"/>
</ant:classes>
<ant:webinf dir="${plugin.resources}/jboss3x">
<ant:include name="jboss-web.xml" if="cactus.home.jboss3x"/>
</ant:webinf>
<!-- Files needed for JBoss -->
<ant:classes dir="${plugin.resources}/jboss3x">
<ant:include name="*.properties" if="cactus.home.jboss3x"/>
</ant:classes>
<ant:webinf dir="${plugin.resources}/jboss3x">
<ant:include name="jboss-web.xml" if="cactus.home.jboss3x"/>
</ant:webinf>
<!-- Add all cactus related jars to the WEB-INF/lib dir. By default
the CactifyWarTask only adds the pure Cactus jars but not
related jars such as HttpUnit jars -->
<lib file="${plugin.getDependencyPath('httpunit:httpunit')}"/>
<lib file="${plugin.getDependencyPath('nekohtml:nekohtml')}"/>
<lib file="${plugin.getDependencyPath('xerces:xercesImpl')}"/>
<lib file="${plugin.getDependencyPath('xerces:xmlParserAPIs')}"/>
</cactifywar>
</goal>