org.objectweb.jonas_ws.wsgen
Class WsGen

java.lang.Object
  extended byorg.objectweb.jonas_ws.wsgen.WsGen

public class WsGen
extends java.lang.Object

Author:
Xavier Delplanque & Guillaume Sauthier

Constructor Summary
WsGen(java.lang.String outputDir, ConfigGenerator cGen, boolean isVerbose, boolean isDebug)
          Constructor : creates a WsGen object.
 
Method Summary
static java.io.File createTempDir()
          Create a cleaned temporary directory.
static void debug(java.lang.String msg)
          Display the specified message.
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.
 java.net.URL getExplodedJar(java.lang.String fileInputName)
           
static void info(java.lang.String msg)
          Display the specified message.
static void main(java.lang.String[] args)
          JOnAS Method
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
 

Constructor Detail

WsGen

public WsGen(java.lang.String outputDir,
             ConfigGenerator cGen,
             boolean isVerbose,
             boolean isDebug)
Constructor : creates a WsGen object. Generate source files for client and configuration files for both endpoints and clients (if needed).

Parameters:
outputDir - the directory where to store generated files
isVerbose - Indicate if command is in verbose mode
isDebug - Indicate if command is in debug mode
Method Detail

main

public static void main(java.lang.String[] args)
JOnAS Method


usage

public static void usage()
Display the usage


info

public static void info(java.lang.String msg)
Display the specified message.

Parameters:
msg - the message to display

debug

public static void debug(java.lang.String msg)
Display the specified message.

Parameters:
msg - the message to display

warning

public static void warning(java.lang.String msg)
Display the specified warning message.

Parameters:
msg - the warning message to display

error

public static void error(java.lang.String msg)
Display the specified error message.

Parameters:
msg - the error message to display

fatalError

public static void fatalError(java.lang.String msg)
Display the specified error message and exits with an EXIT_FAILURE status.

Parameters:
msg - the error message to display

fatalError

public static void fatalError(java.lang.Exception e)
Display the specified error message and exits with an EXIT_FAILURE status.

Parameters:
e - the error to display

createTempDir

public static java.io.File createTempDir()
                                  throws java.io.IOException
Create a cleaned temporary directory.

Returns:
the temp directory file
Throws:
java.io.IOException - if a temp directory cannot be created.

getExplodedJar

public java.net.URL getExplodedJar(java.lang.String fileInputName)