public class Options extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Options.Target |
static class |
Options.WeAreDone
Used to signal that we've finished processing.
|
Modifier and Type | Field and Description |
---|---|
String |
classpath |
int |
compatibilityMode
this switch determines how carefully the compiler will follow
the compatibility rules in the spec.
|
boolean |
debug |
boolean |
debugMode
-Xdebug - gives complete stack trace
|
File |
destDir
-d
|
boolean |
disableXmlSecurity
If true XML security features when parsing XML documents will be disabled.
|
String |
encoding
-encoding
|
static int |
EXTENSION
loosely follow the compatibility rules and allow the use of vendor
binding extensions
|
Filer |
filer
The filer that can use used to write out the generated files
|
List<String> |
javacOptions
-javacOptions
|
boolean |
keep
-keep
|
boolean |
nocompile
-Xnocompile
|
boolean |
quiet
- quite
|
File |
sourceDir
-s
|
static int |
STRICT
strictly follow the compatibility rules specified in JAXWS spec
|
Options.Target |
target |
boolean |
verbose
-verbose
|
Constructor and Description |
---|
Options() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFile(String arg)
Adds a file from the argume
|
void |
addGeneratedFile(File file)
Remember info on generated source file generated so that it
can be removed later, if appropriate.
|
void |
deleteGeneratedFiles()
Delete all the generated source files made during the execution
of this environment (those that have been registered with the
"addGeneratedFile" method).
|
protected void |
disableXmlSecurity() |
static URL |
fileToURL(File file)
Returns the directory or JAR file URL corresponding to the specified
local file name.
|
ClassLoader |
getClassLoader()
Get a URLClassLoader from using the classpath
|
Iterable<File> |
getGeneratedFiles()
Return all the generated files and its types.
|
boolean |
isExtensionMode() |
void |
parseArguments(String[] args)
Parses arguments and fill fields of this object.
|
protected int |
parseArguments(String[] args,
int i)
Parses an option
args[i] and return
the number of tokens consumed. |
static URL[] |
pathToURLs(String path)
Utility method for converting a search path string to an array
of directory and JAR file URLs.
|
void |
removeGeneratedFiles()
Remove generated files
|
String |
requireArgument(String optionName,
String[] args,
int i)
Obtains an operand and reports an error if it's not there.
|
public boolean verbose
public boolean quiet
public boolean keep
public File destDir
public File sourceDir
public Filer filer
public String encoding
public String classpath
public boolean nocompile
public boolean disableXmlSecurity
public Options.Target target
public static final int STRICT
public static final int EXTENSION
public int compatibilityMode
STRICT
or EXTENSION
.public boolean debug
public boolean debugMode
public boolean isExtensionMode()
public void addGeneratedFile(File file)
public void removeGeneratedFiles()
public Iterable<File> getGeneratedFiles()
public void deleteGeneratedFiles()
public void parseArguments(String[] args) throws BadCommandLineException
BadCommandLineException
- thrown when there's a problem in the command-line argumentsprotected void addFile(String arg) throws BadCommandLineException
arg
- a file, could be a wsdl or xsd or a ClassBadCommandLineException
protected int parseArguments(String[] args, int i) throws BadCommandLineException
args[i]
and return
the number of tokens consumed.BadCommandLineException
- If the callee wants to provide a custom message for an error.protected void disableXmlSecurity()
public String requireArgument(String optionName, String[] args, int i) throws BadCommandLineException
BadCommandLineException
public ClassLoader getClassLoader()
public static URL[] pathToURLs(String path)
path
- the search path stringCopyright © 2017 Oracle Corporation. All rights reserved.