title: Ant outofdate check on files in the same directory anywhere in a path
body: <p>I'm trying to setup an Ant task to check if django message files (.po) have been updated since the .mo files were last generated.</p>
  
  <p>This appeared to be a fairly simple task after I'd put the following together;</p>
  
  <pre><code>&lt;!-- Check if messages need to be compiled --&gt;
  &lt;target name="init.trans.update.check" depends="init.properties"&gt;
      &lt;outofdate property="trans.required" outputsourcespath="whatsnew_path" verbose="true"&gt;
          &lt;sourcefiles&gt;
              &lt;fileset dir="src"&gt;
                  &lt;include name="**/*.po"/&gt;
              &lt;/fileset&gt;
          &lt;/sourcefiles&gt;
          &lt;targetfiles&gt;
              &lt;fileset dir="src"&gt;
                  &lt;include name="**/*.mo"/&gt;
              &lt;/fileset&gt;
          &lt;/targetfiles&gt;
          &lt;mapper type="regexp" from="^(.*)\.po$$" to="\1.mo"/&gt;
          &lt;sequential&gt;
              &lt;echo&gt;The messages do need recompiling, the following files have changed:&lt;/echo&gt;
              &lt;property refid="whatsnew_path" name="whatsnew"/&gt;
              &lt;echo&gt;${whatsnew}&lt;/echo&gt;
          &lt;/sequential&gt;
      &lt;/outofdate&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>However with the <code>verbose</code> option enabled it is showing me that it's comparing files in different paths, so it says <code>\src\mysite\locale\en\LC_MESSAGES\django.po outofdate with regard to \src\debug_toolbar\locale\en\LC_MESSAGES\django.mo</code>.</p>
  
  <p>Is there something that can be done with this implementation to ensure the path to each file is the same when the comparison is made? I don't want to have to explicitly list all the paths.</p>