commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nacho G. Mac Dowell (JIRA)" <>
Subject [jira] Commented: (JELLY-201) NotAvailableTag
Date Tue, 15 Feb 2005 09:35:13 GMT
     [ ]
Nacho G. Mac Dowell commented on JELLY-201:

Hi, what I was looking for is the negative version of util:available. If ant:available exists,
maybe util:available is not recommended? The util:available tag accepts a file and an uri.
I suppose the ant:available doesn't provide the same functionality? The thing is that there
are quite a few places I've seen where mkdir gets called regardless if the directory exists.
While the overhead is not a problem, I think that it would improve readability of jelly scripts.



> NotAvailableTag
> ---------------
>          Key: JELLY-201
>          URL:
>      Project: jelly
>         Type: Improvement
>   Components: taglib.util
>     Reporter: Nacho G. Mac Dowell
>  Attachments: NotAvailableTag.patch, NotAvailableTag.patch, UtilTagLibrary.patch, suite.jelly.patch
> It would be useful to have a NotAvailableTag. Even though (for example) mkdir can be
called each time without any overhead, sometimes the code would improve readability with the
use of this tag.
> Solution:
> Create a method boolean isAvailable() in AvailableTag which does all the job and have
the NotAvailableTag extend AvailableTag and in the doTag method:
>         if (!isAvailable()) {
>             invokeBody(output);
>         }

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message