Is there a way in a plugin to test a a property with a regular expression and 
get a true/false indication?  I don't particularly need the "matching" text 
returned.

Reason: I'd like a way to determine if any dependency is a SNAPSHOT versus a 
versioned release.  This way we could prevent accidently generating a "release" 
for  code that still depends on a snapshot.

Thinking of something like:

    <j:forEach var="dependency" items="${pom.dependencies}">
            <j:if test="${dependency.version.matches('.*SNAPSHOT.*') == 
'true'}">
                 <ant:fail>Dependency is a SNAPSHOT</ant:fail>
            </j:if>

Thanks in advance for you time.  Maven is a big help with our builds.

Cary


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

Reply via email to