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 :)
-- Endre
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
