com.softwareag.centrasite.appl.framework.generator
Class CommandLineGenerator

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.generator.CommandLineGenerator

public class CommandLineGenerator
extends java.lang.Object


Constructor Summary
CommandLineGenerator()
           
 
Method Summary
static void main(java.lang.String[] args)
          How to run the CommandLineGenerator:
Configuring the classpath:
The jar's needed for the execution of the CommandLineGenerator can be found under ..
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineGenerator

public CommandLineGenerator()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception

How to run the CommandLineGenerator:


Configuring the classpath:

The jar's needed for the execution of the CommandLineGenerator can be found under ../SoftwareAG/CentraSite/redist and ../SoftwareAG/CentraSite/redist/csaf:

// CSAF jars:
CentraSiteFramework-common.jar

// redist folder jars:
gf.jaxr-api-osgi.jar
log4j.jar
CentraSiteJAXR-API.jar
cstUtils.jar
xqjapi.jar
inmUtil.jar
CentraSiteDynLoader.jar
inmUtilConf.jar
wstx-asl.jar
CentraSiteCommons.jar
TaminoAPI4J.jar
TaminoAPI4J-l10n.jar

Having the L10N jars in the classpath is not mandatory but it will be helpful in case of failure.

Program arguments:

-user (mandatory, a registry user)
-pass (mandatory, password for CentraSIte DB)
-url (mandatory, the CentraSIteDB url)
-type (namespace and name of the type to be generated. exaple: {http://test}TestService )
-interfacePackage (mandatory, the package of the interfaces to be generated. example: com.sag.generated)
-implpackage (Not mandatory, the package of the implementation to be generated. example: com.sag.generated.impl, if it is not specified the package of the interface will be used)
-destination (Not mandatory, the place where the generated beans will be placed, if no destination is specified the files will be generated in the current directory )

Example for CommandLineGenerator execution:

java -classpath gf.jaxr-api-osgi.jar;log4j.jar;CentraSiteJAXR-API.jar;cstUtils.jar;xqjapi.jar;inmUtil.jar;CentraSiteDynLoader .jar;CentraSiteFramework-common.jar;inmUtilConf.jar;wstx-asl.jar;CentraSiteCommons .jar;TaminoAPI4J.jar com.softwareag.centrasite.appl.framework.generator.CommandLineGenerator -user userName -pass pass123 -url http://localhost:53305/CentraSite/CentraSite -typename {http://namespace}TypeName -interfacepackage com.generated.bean -implpackage com.generated.bean.impl -destination C:\temp

Parameters:
args -
Throws:
java.lang.Exception