Oops.  Sorry.  Wrong list.  I was using antrun and wasn't thinking.

-------- Original Message --------

I would like to fail if certain files make it into my build (failing on "outlawed" dependencies). I've experimented with path regex expressions with <available>, such as the following:

      <fail>
          <condition>
<available file="**/abc.jar" type="file" filepath="${basedir}/target"/>
          </condition>
          The file abc.jar is in the build (it should NOT be there)
      </fail>

This expresses what I want (failing if abc.jar exists anywhere), but does not work. I've tried many variations--they all fail (as desired) when I name the file explicitly, but succeed (not desired) when I add "**".

I would appreciate any suggestions.
Thanks!
--the walrus



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to