if( s != null )
{
try
{
PatternCompiler pc = new GlobCompiler();
String[] ptrns = StringUtils.split( s, "," );
m_exclude = new Pattern[ptrns.length];
for( int i = 0; i < ptrns.length; i++ )
{
m_exclude[i] = pc.compile( ptrns[i] );
}
}
catch( MalformedPatternException e )
{
throw new PluginException("Exclude-parameter has a malformed pattern: "+e.getMessage());
}
}
// TODO: Cut-n-paste, refactor
s = params.get( PARAM_INCLUDE );
if( s != null )
{
try
{
PatternCompiler pc = new GlobCompiler();
String[] ptrns = StringUtils.split( s, "," );
m_include = new Pattern[ptrns.length];
for( int i = 0; i < ptrns.length; i++ )
{
m_include[i] = pc.compile( ptrns[i] );
}
}
catch( MalformedPatternException e )
{
throw new PluginException("Include-parameter has a malformed pattern: "+e.getMessage());