You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ma...@thewalrus.com on 2008/04/14 20:38:01 UTC
[Fwd: Regex in ]
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org