|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.tools.ws.wscompile.Options
public class Options
Provide common jaxws tool options.
Nested Class Summary | |
---|---|
static class |
Options.Target
|
static class |
Options.WeAreDone
Used to signal that we've finished processing. |
Field Summary | |
---|---|
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 |
static int |
EXTENSION
loosely follow the compatibility rules and allow the use of vendor binding extensions |
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
|
File |
targetDir
Target direcoty when producing files. |
boolean |
verbose
-verbose |
Constructor Summary | |
---|---|
Options()
|
Method Summary | |
---|---|
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). |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean verbose
public boolean quiet
public boolean keep
public File destDir
public File sourceDir
public String classpath
public boolean nocompile
public Options.Target target
public static final int STRICT
public static final int EXTENSION
public int compatibilityMode
STRICT
or EXTENSION
.
public File targetDir
public boolean debug
public boolean debugMode
Constructor Detail |
---|
public Options()
Method Detail |
---|
public boolean isExtensionMode()
public void addGeneratedFile(File file)
public void removeGeneratedFiles()
public Iterable<File> getGeneratedFiles()
public void deleteGeneratedFiles()
public final 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 Class
BadCommandLineException
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.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 string
public static URL fileToURL(File file)
file
- the File object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |