I don't know much about Jelly, but if the stuff in squiggly braces is
supposed to be Java, don't you want a ">" instead of "gt"?
Another alternative to try is Ant's <uptodate> task.
Jeff
On Mon, 19 Jan 2004, at 13:40:16 [GMT +0100] Endre Meckelborg Rognerud
wrote:
> Hello!
> I'm trying to write a deploy goal for some config files, but I don't
> understand how I can match the lastModified date to see if I need to
> copy a file or not. This runs well, but the body of the if tag is never
> reached even if it should.
> Alternative 1:
> <j:if test="${file.lastModified() gt newfile.lastModified()}">
> <echo message="## I'M HERE!! ##"/>
> </j:if>
> Alternative 2:
> <j:set var="olddate" value="${file.lastModified()}"/>
> <j:set var="newdate" value="${newfile.lastModified()}"/>
> <j:if test="${olddate gt newdate}">
> <echo message="## I'M HERE!! ##"/>
> </j:if>
> None of these works. Hope someone can give me a hint of what I have to
> do to make the test work...
> Thanks in advance :)
--
mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]