org.nuxeo.runtime.jboss.deployer.structure
Class PathMatcher
java.lang.Object
org.nuxeo.runtime.jboss.deployer.structure.PathMatcher
public class PathMatcher
- extends Object
Helper to parse and load classpaths
- Author:
- Bogdan Stefanescu
PathMatcher
public PathMatcher()
getExactPaths
public List<String> getExactPaths()
addExactPath
public void addExactPath(String path)
addPattern
public void addPattern(String path)
isEmpty
public boolean isEmpty()
addPattern
public PathPattern addPattern(PathPattern pattern)
addPatterns
public void addPatterns(String[] paths)
getPatterns
public Map<String,PathPattern> getPatterns()
addPatterns
public void addPatterns(String pathExpr)
- Parse and add patterns from a class path expression. Example of
expression:
lib/*.jar:bundles/*:nuxeo-core-*.rar
- Parameters:
pathExpr
- a class path pattenr expression
getMatches
public List<org.jboss.virtual.VirtualFile> getMatches(org.jboss.virtual.VirtualFile root)
throws IOException
- Returns null if nothing matches.
- Throws:
IOException
getMatchesAsFiles
public List<File> getMatchesAsFiles(File root)
throws IOException
- Throws:
IOException
getMatchesAsPaths
public List<String> getMatchesAsPaths(File root)
throws IOException
- Throws:
IOException
getAbsoluteMatches
public List<File> getAbsoluteMatches()
throws IOException
- Throws:
IOException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.