Sorry, I forgot the application.xml referenced by the test-webapp-ear
below (goes into ${test-webapp.conf.home}).
Marc Paquette wrote:
> Hi all,
>
> I submit the following addition to
> jakarta-commons/httpclient/build.xml : two targets for producing WAR
> and EAR files for the test webapp. This makes it easier to deploy the
> test webapp on other Servlet containers than Tomcat.
>
> <target name="test-webapp-war" depends="compile.test-webapp">
> <war warfile="${test-webapp.dest}/httpclienttest.war"
> webxml="${test-webapp.conf.home}/web.xml"
> basedir="${test-webapp.dest}/httpclienttest/WEB-INF"
> excludes="classes/,*.xml">
>
> <classes
> dir="${test-webapp.dest}/${httpclient.test.webappContext}/WEB-INF/classes"/>
>
> </war>
> </target>
>
> <target name="test-webapp-ear"
> depends="compile.test-webapp,test-webapp-war">
> <ear earfile="${test-webapp.dest}/httpclienttest.ear"
> appxml="${test-webapp.conf.home}/application.xml">
> <fileset dir="${test-webapp.dest}" includes="*.jar,*.war"/>
> </ear>
> </target>
>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.2//EN" "http://java.sun.com/j2ee/dtds/application_1_2.dtd">
<application>
<display-name>Jakarta Commons HTTP Client test web application</display-name>
<module>
<web>
<web-uri>httpclienttest.war</web-uri>
<context-root>/httpclienttest</context-root>
</web>
</module>
<security-role>
<role-name>administrators</role-name>
</security-role>
<security-role>
<role-name>users</role-name>
</security-role>
</application>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>