You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Marc Paquette <mp...@covansys.com> on 2002/02/13 15:28:20 UTC

[httpclient] Addition to build.xml to produce .war and .ear test-webapp

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>

-- 

Marc Paquette
Conseiller Principal, Architecture de solutions, WEI
Tel: 514-288-4680 x2028 (boite vocale: 8008)
mpaquett@covansys.com



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [httpclient] Addition to build.xml to produce .war and .ear test-webapp

Posted by dIon Gillard <di...@multitask.com.au>.
Committed, thanks!

Marc Paquette wrote:

> 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>
>>
>
-- 
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [httpclient] Addition to build.xml to produce .war and .ear test-webapp

Posted by Marc Paquette <mp...@covansys.com>.
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>
>