|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.jonas_ws.wsgen.WsGen
Field Summary | |
protected ConfigGenerator |
cg
The Generator used for webservices classes and configuration files creation |
protected boolean |
debug
Is the command is on debug mode ? |
protected java.lang.String |
fileInputName
input file name |
protected boolean |
isHelp
Is the command used for help message ? |
protected boolean |
keepGenerated
|
protected static org.objectweb.util.monolog.api.Logger |
logger
The logger to use |
protected java.lang.String |
outputdir
Name of the directory where to place the generated file |
protected java.io.File |
tmpDir
temp directory for archive creation |
protected boolean |
verbose
Is the command on verbose ? |
Constructor Summary | |
protected |
WsGen(java.lang.String outputDir,
ConfigGenerator cGen,
boolean isVerbose,
boolean isDebug,
java.lang.String filename)
Constructor : creates a WsGen object. |
Method Summary | |
abstract void |
configure()
Abstract method for configuration of the Object. |
static java.io.File |
createTempDir()
Create a cleaned temporary directory. |
static void |
debug(java.lang.String msg)
Display the specified message. |
protected static boolean |
destroyFile(java.io.File file)
Recursively destroy the given file/directory. |
static void |
error(java.lang.String msg)
Display the specified error message. |
static void |
fatalError(java.lang.Exception e)
Display the specified error message and exits with an EXIT_FAILURE status. |
static void |
fatalError(java.lang.String msg)
Display the specified error message and exits with an EXIT_FAILURE status. |
static java.net.URL |
getExplodedJar(java.lang.String fileInputName)
Unpack the jar in a temporary directory. |
static void |
info(java.lang.String msg)
Display the specified message. |
static void |
main(java.lang.String[] args)
JOnAS Method |
protected void |
removeDir(java.io.File dir)
|
protected void |
removeTempDirectories()
|
static void |
usage()
Display the usage |
static void |
warning(java.lang.String msg)
Display the specified warning message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ConfigGenerator cg
protected boolean keepGenerated
protected java.io.File tmpDir
protected boolean verbose
protected boolean debug
protected boolean isHelp
protected java.lang.String outputdir
protected java.lang.String fileInputName
protected static org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
protected WsGen(java.lang.String outputDir, ConfigGenerator cGen, boolean isVerbose, boolean isDebug, java.lang.String filename) throws WsGenException
outputDir
- the directory where to store generated filescGen
- The ConfigGenerator to use (Axis/Glue/...)isVerbose
- Indicate if command is in verbose modeisDebug
- Indicate if command is in debug modefilename
- file to process.Method Detail |
protected void removeTempDirectories()
public static void main(java.lang.String[] args)
public static void usage()
public static void info(java.lang.String msg)
msg
- the message to displaypublic static void debug(java.lang.String msg)
msg
- the message to displaypublic static void warning(java.lang.String msg)
msg
- the warning message to displaypublic static void error(java.lang.String msg)
msg
- the error message to displaypublic static void fatalError(java.lang.String msg)
msg
- the error message to displaypublic static void fatalError(java.lang.Exception e)
e
- the error to displaypublic static java.io.File createTempDir() throws java.io.IOException
java.io.IOException
- if a temp directory cannot be created.public static java.net.URL getExplodedJar(java.lang.String fileInputName)
protected void removeDir(java.io.File dir)
protected static boolean destroyFile(java.io.File file)
file
- the file to destroy.
public abstract void configure() throws WsGenException
WsGenException
- when configuration fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |