protected List < VCProject > getParsedProjects ( BuildPlatform platform , BuildConfiguration configuration , String filterRegex ) throws MojoExecutionException { Pattern filterPattern = null ; List < VCProject > filteredList = new ArrayList < VCProject > ( ) ; if ( filterRegex != null ) { filterPattern = Pattern . compile ( filterRegex ) ; } for ( VCProject vcProject : getParsedProjects ( platform , configuration ) ) { if ( filterPattern == null ) { filteredList . add ( vcProject ) ; } else { Matcher prjExcludeMatcher = filterPattern . matcher ( vcProject . getName ( ) ) ; if ( ! prjExcludeMatcher . matches ( ) ) { filteredList . add ( vcProject ) ; } } } return filteredList ; }
Return project configurations for the specified platform and configuration filtered by name using the specified Pattern .