Summer.Batch.Common.IO.AntPathResolver Class Reference

Utility class to resolve Ant style paths as resources. More...

Public Member Functions

IEnumerable< IResourceFindMatchingResources (string pattern)
 Resolves the pattern and gets all the existing resources that match it. More...
 

Static Public Member Functions

static bool IsPattern (string path)
 Checks if a path contains a wildcard. More...
 

Detailed Description

Utility class to resolve Ant style paths as resources.

The mapping matches resources with the following rules:

? matches one character
* matches zero or more character in a directory name
** matches zero or more directories in a path

Member Function Documentation

IEnumerable<IResource> Summer.Batch.Common.IO.AntPathResolver.FindMatchingResources ( string  pattern)

Resolves the pattern and gets all the existing resources that match it.

Parameters
patterna pattern matching resources
Returns
the matched resources
static bool Summer.Batch.Common.IO.AntPathResolver.IsPattern ( string  path)
static

Checks if a path contains a wildcard.

Parameters
patha path describing resources
Returns
true if the path is a pattern with a wildcard; false otherwise

The documentation for this class was generated from the following file:
  • Summer.Batch.Common/IO/AntPathResolver.cs