.comment-link {margin-left:.6em;} <$BlogRSDURL$>

Wednesday, March 01, 2006

Maven UpToDate and dots in property names 

If you're having trouble using UpToDate in Maven, it turns out that maven 1.0.2 and/or Jexl/Jelly don't like periods in property names when using the UpToDate ant task.

WRONG

<uptodate property="build.uptodate" targetfile="${maven.build.dir}/last.build">
<srcfiles dir="${maven.src.dir}" includes="**/*"/>
</uptodate>
RIGHT

<uptodate property="build_uptodate" targetfile="${maven.build.dir}/last.build">
<srcfiles dir="${maven.src.dir}" includes="**/*"/>
</uptodate>
Just something to be aware of if your UpToDate targets don't seem to be working correctly.

This page is powered by Blogger. Isn't yours?