commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@octo.com>
Subject RE: [Jelly] Testing if a file exists (elegantly)
Date Wed, 13 Nov 2002 15:03:01 GMT
Hum... thinking a bit more about it, it doesn't really help for the
following case:

    <available file="${maven.war.webxml}"
        property="maven.cactus.webxml.exists"/>

    <j:choose>
      <j:when test="${maven.cactus.webxml.exists}">
        <j:set var="webxml" value="${maven.war.webxml}"/>
      </j:when>
      <j:otherwise>
        <j:set var="webxml" value="${maven.cactus.emptywebxml}"/>
      </j:otherwise>
    </j:choose>

How would you go about writing this? Using the helper you mentioned?

Anyway, don't worry, I can live with <available> for now! :-)

Thanks
-Vincent


> -----Original Message-----
> From: Vincent Massol [mailto:vmassol@octo.com]
> Sent: 13 November 2002 14:58
> To: 'Jakarta Commons Developers List'
> Subject: RE: [Jelly] Testing if a file exists (elegantly)
> 
> 
> 
> > -----Original Message-----
> > From: James Strachan [mailto:james_strachan@yahoo.co.uk]
> > Sent: 13 November 2002 13:26
> > To: Jakarta Commons Developers List
> > Subject: Re: [Jelly] Testing if a file exists (elegantly)
> >
> > From: "Vincent Massol" <vmassol@octo.com>
> > > Hi JellyMen (no offence intended!),
> >
> > :-)
> >
> > How about 'Jellies' as an affectionate term for people who do Jelly
:)
> 
> ok for Jellies ;-)
> 
> [snip]
> 
> > I actually went for a different tack; to create a new tag.
> >
> > <util:available file="${maven.war.webxml}">
> >     ...
> > </util:available>
> >
> 
> Great! That's perfect. Thanks a lot. I'm going to update the Cactus
> plugin to use that.
> 
> [snip]
> 
> -Vincent
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-
> help@jakarta.apache.org>



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


Mime
View raw message