Home > Maven > How to match a file path with include/exclude pattern ?

How to match a file path with include/exclude pattern ?

SelectorUtils knows!

SelectorUtils.matchPath( include/excludePattern, filePath ) determines whether or not file’s path (I usually use a canonical one) is matching an <include> or <exclude> pattern. Very comfortable!

<dependency>
    <groupId>org.codehaus.plexus</groupId>
    <artifactId>plexus-utils</artifactId>
    <version>1.5.15</version>
    <scope>compile</scope>
</dependency>
Advertisements
Categories: Maven Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: