orc
Class Config
java.lang.Object
orc.Config
public class Config
- extends java.lang.Object
Class for processing configuration options. Such options could be provided via command line
arguments or obtained though environment variables, and could also be read from other sources.
Note that this class does not set up the runtime environment (for example, by instantiating
site bindings or defining closures); it only collects the files that will provide those
bindings.
- Author:
- dkitchin, quark
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Config
public Config()
processArgs
public void processArgs(java.lang.String[] args)
printUsage
public void printUsage(boolean _)
throws org.kohsuke.args4j.CmdLineException
- Throws:
org.kohsuke.args4j.CmdLineException
setDebug
public void setDebug(boolean debug)
addInclude
public void addInclude(java.lang.String include)
setMaxpub
public void setMaxpub(int maxpub)
setInputFile
public void setInputFile(java.io.File file)
throws org.kohsuke.args4j.CmdLineException
- Throws:
org.kohsuke.args4j.CmdLineException
processEnvVars
public void processEnvVars()
getTarget
public Node getTarget()
debugMode
public java.lang.Boolean debugMode()
maxPubs
public java.lang.Integer maxPubs()
getInstream
public java.io.Reader getInstream()
getIncludes
public java.util.List<java.lang.String> getIncludes()