org.ops4j.pax.url.dir.internal
Class Parser
java.lang.Object
org.ops4j.pax.url.dir.internal.Parser
public class Parser
- extends Object
Current format (as of paxurl 0.3.3)
Expects a url like dir:/Users/foo/myroot
New format suggestion:
This is if you don't know the exact folders but examples of contents
dir:/Users/tonit/foo;org/ops4j/pax/Paxer.class&/Users/tonit/foo;org/ops4j/pax/PaxerTest.class$props=foo&other=bar
If you want to just include certain files:
(give them a filename pattern)
dir:tail;/Users/tonit/foo;org/ops4j/pax/Paxer.class;.*class&/Users/tonit/foo;org/ops4j/pax/PaxerTest.class$props=foo&other=bar
If you know exact folders, this is the version without tail:
dir:/Users/tonit/foo/classes&/Users/tonit/foo/test-classes$props=foo&other=bar
This would be the full format:
dir:
;;$=
While tail and filenamepattern are optional.
On a higher level:
dir:$
paramters is optional
Where contentsection and parameters can be "chained" by & (like you see above in the samples)
This supports multiple (different) roots, each one with teir own (optional) tail.
- Since:
- Dec 10, 2008
- Author:
- Toni Menzel (tonit)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Parser
public Parser(String url)
getDirectory
public File getDirectory()
getOptions
public Properties getOptions()
getTailExpr
public String getTailExpr()
Copyright © 2006-2012 OPS4J - Open Participation Software for Java. All Rights Reserved.