jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Cheesman <jch...@msl.es>
Subject Re: conditional building of Cactus deployments
Date Fri, 02 Nov 2001 16:41:52 GMT
At 04:00 PM 02/11/01, you wrote:
>----- Original Message -----
>From: "Jim Cheesman" <jchees@msl.es>
> > >* Some tests are non-Cactus JUnit tests.  Some are Cactus.  I'm
> > >them by directory structure.  There needs to be a distinction in the Ant
> > >targets on which tests get run and such.
> >
> >
> > How/why do you want to distinguish between them?
>Because regular JUnit tests don't require an app. server installed.  I want
>the flexibility to build and run just the plain ol' JUnit tests or step up
>to the Cactus ones separately.  This piece is no big deal Ant-wise.

Fair enough ;) Try using "if" in the ant task, and passing in a value from 
the command line:

   <target name="full">
     <antcall target="normalTests" />
     <antcall target="cactusTests" />

   <target name="cactusTests" if="withCactus">

> > >* web.xml allow conditional inclusion of the redirector configuration
> >
> > Think about setting up (i.e. building then copying a war) a test
> > application. Then delete it.
>I don't quite understand what you mean.  I want a production-quality web.xml
>that does not have the Cactus redirectors in there, and the capability to
>turn them on when building the test deployment.

I don't know if that's really possible - I think you'll have to build two 
webapps - one  for  testing and the other as production. We're far enough 
away from deadline here that adding the redirectors to web.xml is no great 


                           *   Jim Cheesman   *
jchees@msl.es - (34)(91) 724 9200 x 2360
  In retrospect it becomes clear 
that hindsight is definitely overrated

To unsubscribe, e-mail:   <mailto:cactus-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:cactus-user-help@jakarta.apache.org>

View raw message