Package org.springframework.util

Examples of org.springframework.util.AntPathMatcher.match()


      return false;
    }
    String filePathRelativeToHudsonRoot = JenkinsFilesHelper.buildPathRelativeToHudsonRoot(file);
        AntPathMatcher matcher = new AntPathMatcher();
        for(String pattern : includesPatterns) {
            if(matcher.match(pattern, filePathRelativeToHudsonRoot)){
                return true;
            }
    }
    return false;
  }
View Full Code Here


  }

  private boolean shouldExclude(File file) {
    AntPathMatcher pathMatcher = new AntPathMatcher();
    for (String exclusionPattern : processingInfo.getExclusionPatterns()) {
      if (pathMatcher.match(exclusionPattern, file.getAbsolutePath().replace('\\', '/'))) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.