org.nuxeo.runtime.jboss.deployer.structure
Class PathMatcher
java.lang.Object
org.nuxeo.runtime.jboss.deployer.structure.PathMatcher
public class PathMatcher
- extends java.lang.Object
Helper to parse and load classpaths
- Author:
- Bogdan Stefanescu
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathMatcher
public PathMatcher()
getExactPaths
public java.util.List<java.lang.String> getExactPaths()
addExactPath
public void addExactPath(java.lang.String path)
addPattern
public void addPattern(java.lang.String path)
isEmpty
public boolean isEmpty()
addPattern
public PathPattern addPattern(PathPattern pattern)
addPatterns
public void addPatterns(java.lang.String[] paths)
getPatterns
public java.util.Map<java.lang.String,PathPattern> getPatterns()
addPatterns
public void addPatterns(java.lang.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 java.util.List<org.jboss.virtual.VirtualFile> getMatches(org.jboss.virtual.VirtualFile root)
throws java.io.IOException
- Returns null if nothing matches.
- Throws:
java.io.IOException
getMatchesAsFiles
public java.util.List<java.io.File> getMatchesAsFiles(java.io.File root)
throws java.io.IOException
- Throws:
java.io.IOException
getMatchesAsPaths
public java.util.List<java.lang.String> getMatchesAsPaths(java.io.File root)
throws java.io.IOException
- Throws:
java.io.IOException
getAbsoluteMatches
public java.util.List<java.io.File> getAbsoluteMatches()
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.