Execute Groovy script
=====================

version=0.2.2
build.date=2019-04-29 18:16:00

engine.name = CxGroovy
engine.version = 0.2.2
engine.lang.name = Groovy
engine.lang.version = 2.5.6
engine.mime = text/groovy
engine.extensions = groovy

command line syntaxes
---------------------

command line syntax 1:

  cxgroovy [options] groovy_file [args]

  Execute script from file

command line syntax 2:

  cxgroovy [options] -- [args]

  Execute script from STD INPUT

command line syntax 3:

  cxgroovy [options]

  Execute script from options

options:

  -e groovy_script_expression
      Execute groovy script expression

  -cs charset
      Set groovy_file charset

  -list charsets
      List avaliable charsets

  -conf cxgroovy_conf_file
      Pass cxgroovy_conf_file, (see cxgroovy section)

cxgroovy file
-------------

cxgroovy file define classpath and groovy compiler configuration

sample:
    <CXGroovyConf>
        <GCompilerConf 
            debug="false" 
            defaultScriptExtension="groovy" 
            minimumRecompilationInterval="100" 
            recompileGroovySource="true" 
            scriptBaseClass="pkg.BaseScript" 
            sourceEncoding="UTF-8" 
            targetDirectory="targetdir" 
            verbose="true">
            <imports>
                <ImportClass   className="pkg.clsname"></ImportClass>
                <ImportClass   className="pkg.clsname2" alias="alias2" />
                <ImportPackage packageName="pkg"></ImportPackage>
                <ImportField   className="pkg.clsname3" fieldName="field1" />
                <ImportField   className="pkg.clsname3" fieldName="field2" alias="alias3" />
                <ImportFields  className="pkg" />
            </imports>
        </GCompilerConf>
        <GroovyClassLoaderBuilder parentCL="Inherit" shouldRecompile="true">
            <classpathEntries>
                <FileEntry>jarfile</FileEntry>
            </classpathEntries>
        </GroovyClassLoaderBuilder>
    </CXGroovyConf>
