You might want to have a look at the available tag...
http://jakarta.apache.org/commons/jelly/libs/util/tags.html#util:available

Steve

On Wed, 2005-11-05 at 17:36 +0200, Arik Kfir wrote:

> Gladly :)
> 
> 
> sergiu gordea wrote:
> 
> > Arik Kfir wrote:
> >
> >> Hi
> >>
> >>
> >> Try this (the "u" is from "jelly:util" namespace):
> >>
> >>
> >>    <u:file var="f" name="/${my.file.property.name}/myfile.jar/"/>
> >>    <j:if test="${f.exists()}">
> >>       ...
> >>    </j:if>
> >
> >
> > Thanks a lot,
> >
> > Sergiu
> >
> >>
> >>
> >> sergiu gordea wrote:
> >>
> >>>
> >>> Hi all,
> >>>
> >>> I have a little problem.
> >>> We used ant in our project and now we migrated to maven.
> >>>
> >>> I read that the ant "unless" is replaced with "j:if", but  it seems 
> >>> that
> >>> tha "test" attribute must have a boolean value
> >>>
> >>> <j:if test="true" ...
> >>>
> >>> How can I check in maven if a file exists?
> >>>
> >>> I need to write something like
> >>>
> >>> <j:if test="file.exists">
> >>>    <ant:copy file="file" to="destination">
> >>> </j:if>
> >>>
> >>> Which is the correct syntax? Where can I find more jelly script 
> >>> examples?
> >>>
> >>> Thanks in advance,
> >>>
> >>> Sergiu
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

Reply via email to