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.
<j:if test="${file.lastModified() gt newfile.lastModified()}"> <echo message="## I'M HERE!! ##"/> </j:if>
Just for the record... I solved it like this:
<j:if test="${file.lastModified().compareTo(
tofile.lastModified()) == '1'}">
...
</j:if>-- Endre
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
