org.nuiton.jaxx
Class JaxxGeneratorMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.jaxx.AbstractJaxxMojo
          extended by org.nuiton.jaxx.JaxxGeneratorMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class JaxxGeneratorMojo
extends AbstractJaxxMojo

Classe permettant de transformer des sources jaxx vers du source java.

Author:
chemit

Field Summary
protected  boolean addCompileClassPath
          flag to include in compiler classpath the compile class-path (can only be used in a test phase).
protected  boolean addLogger
          flag to add logger to each generated jaxx file.
protected  boolean addProjectClassPath
          flag to include in compiler classpath the project compile classpath.
protected  boolean addResourcesToClassPath
          flag to include in compiler classpath the java resources directories (src and outJava).
protected  boolean addSourcesToClassPath
          flag to include in compiler classpath the java sources directories (src and outJava).
protected  java.lang.String[] beanInfoSearchPath
          extra path to be added in java.beans.Introspector#setBeanInfoSearchPath(String[]).
protected  java.lang.String compilerFQN
          Le compilateur à utiliser (par défaut celui de Swing)
protected  java.lang.String defaultDecoratorFQN
          the FQN of the ui to use for error notification.
protected  java.lang.String defaultErrorUIFQN
          the FQN of the ui to use for error notification.
protected  java.lang.String[] excludes
          pour filter les fichiers a ne pas traiter
protected  java.lang.String extraImportList
          list of fqn of class toimport for all generated jaxx files
protected  java.lang.String[] extraImports
          Deprecated. Prefer use of extraImportList as a string, so could be use in properties section.
protected  java.lang.String[] files
           
protected  boolean force
          to force generation of java source for any jaxx files with no timestamp checking.
protected  boolean generateHelp
          flag to activate help generation process.
protected  java.lang.String helpBrokerFQN
          the FQN of help broker

By default, none.

protected  java.lang.String[] includes
          pour filter les fichiers a traiter
protected  java.lang.String javaOpts
          les options de la compilation
protected  java.lang.String jaxxContextImplementorClass
          the name of implementation of JAXXContext to be used on JAXXObject.
protected  boolean optimize
          pour optimizer le code compile ou genere ?
protected  CompilerOptions options
           
protected  java.io.File outClass
          chemin du repertoire de compilation des resources.
protected  java.io.File outResource
          chemin du repertoire de generation des resources.
protected  boolean profile
          flag to activate profile mode.
protected  boolean resetAfterCompile
          flag to keep compilers after the generate operation (usefull for tests.
protected  java.io.File src
          Repertoire sources des fichiers jaxx a generer.
protected  boolean testPhase
          A flag to mark themojo to be used in a test phase.
protected  org.nuiton.util.MirroredFileUpdater updater
           
protected  boolean useUIManagerForIcon
          a flag to use UIManager to retreave icons.
protected  java.lang.String validatorFQN
          Le compilateur à utiliser (par défaut celui de Swing)
 
Fields inherited from class org.nuiton.jaxx.AbstractJaxxMojo
cl, helpIdStore, helpsetI18nPrefix, helpsetIndexI18nSuffix, helpSetName, helpsetTitleI18nSuffix, helpsetTocI18nSuffix, i18nable, outJava, project, skip, verbose
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JaxxGeneratorMojo()
           
 
Method Summary
protected  void checkJaxxContextImplementorClass()
           
 void doAction()
           
protected  void fixCompileSourceRoots()
           
protected  void generateHelp()
           
 void init()
           
protected  java.net.URLClassLoader initClassLoader(org.apache.maven.project.MavenProject project, org.apache.maven.plugin.logging.Log log)
           
protected  void printInit()
           
protected  java.lang.String removeQuote(java.lang.String txt)
           
 CompilerOptions toCompilerOptions()
           
 
Methods inherited from class org.nuiton.jaxx.AbstractJaxxMojo
execute
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

compilerFQN

protected java.lang.String compilerFQN
Le compilateur à utiliser (par défaut celui de Swing)


validatorFQN

protected java.lang.String validatorFQN
Le compilateur à utiliser (par défaut celui de Swing)


outResource

protected java.io.File outResource
chemin du repertoire de generation des resources.


outClass

protected java.io.File outClass
chemin du repertoire de compilation des resources.


src

protected java.io.File src
Repertoire sources des fichiers jaxx a generer.


optimize

protected boolean optimize
pour optimizer le code compile ou genere ?


javaOpts

protected java.lang.String javaOpts
les options de la compilation


includes

protected java.lang.String[] includes
pour filter les fichiers a traiter


excludes

protected java.lang.String[] excludes
pour filter les fichiers a ne pas traiter


addSourcesToClassPath

protected boolean addSourcesToClassPath
flag to include in compiler classpath the java sources directories (src and outJava).

By default, false.


addResourcesToClassPath

protected boolean addResourcesToClassPath
flag to include in compiler classpath the java resources directories (src and outJava).

By default, false.

Since:
1.6.0

addCompileClassPath

protected boolean addCompileClassPath
flag to include in compiler classpath the compile class-path (can only be used in a test phase).

By default, false.

Since:
1.6.0

addProjectClassPath

protected boolean addProjectClassPath
flag to include in compiler classpath the project compile classpath.

By default, false.


force

protected boolean force
to force generation of java source for any jaxx files with no timestamp checking.

By default, never force generation.


addLogger

protected boolean addLogger
flag to add logger to each generated jaxx file.

By default, always add it.


resetAfterCompile

protected boolean resetAfterCompile
flag to keep compilers after the generate operation (usefull for tests.

By default, always reset.


jaxxContextImplementorClass

protected java.lang.String jaxxContextImplementorClass
the name of implementation of JAXXContext to be used on JAXXObject.

Must not be abstract.


beanInfoSearchPath

protected java.lang.String[] beanInfoSearchPath
extra path to be added in java.beans.Introspector#setBeanInfoSearchPath(String[]).

add beanInfoSearchPath to be registred by BeanInfoUtil.addJaxxBeanInfoPath(String[])

and then will be use by SwingInitializer.

This permit to use real beanInfo of imported graphic libraries.


extraImports

protected java.lang.String[] extraImports
Deprecated. Prefer use of extraImportList as a string, so could be use in properties section.
list of fqn of class toimport for all generated jaxx files


extraImportList

protected java.lang.String extraImportList
list of fqn of class toimport for all generated jaxx files


defaultErrorUIFQN

protected java.lang.String defaultErrorUIFQN
the FQN of the ui to use for error notification.

If not given, will use the one defined in validator

See Also:
SwingValidator

defaultDecoratorFQN

protected java.lang.String defaultDecoratorFQN
the FQN of the ui to use for error notification.

If not given, will use the one defined in validator

See Also:
CompiledObjectDecorator

useUIManagerForIcon

protected boolean useUIManagerForIcon
a flag to use UIManager to retreave icons.


profile

protected boolean profile
flag to activate profile mode.

By default, not active.


generateHelp

protected boolean generateHelp
flag to activate help generation process.

By default, not active.

Since:
1.3

helpBrokerFQN

protected java.lang.String helpBrokerFQN
the FQN of help broker

By default, none.

Since:
1.3

testPhase

protected boolean testPhase
A flag to mark themojo to be used in a test phase. This will permits to add generated sources in test compile roots.

Since:
1.6.0

files

protected java.lang.String[] files

options

protected CompilerOptions options

updater

protected org.nuiton.util.MirroredFileUpdater updater
Constructor Detail

JaxxGeneratorMojo

public JaxxGeneratorMojo()
Method Detail

init

public void init()
          throws java.lang.Exception
Specified by:
init in class AbstractJaxxMojo
Throws:
java.lang.Exception

doAction

public void doAction()
              throws org.apache.maven.plugin.MojoExecutionException
Specified by:
doAction in class AbstractJaxxMojo
Throws:
org.apache.maven.plugin.MojoExecutionException

toCompilerOptions

public CompilerOptions toCompilerOptions()

fixCompileSourceRoots

protected void fixCompileSourceRoots()

printInit

protected void printInit()

checkJaxxContextImplementorClass

protected void checkJaxxContextImplementorClass()

generateHelp

protected void generateHelp()
                     throws java.io.IOException
Throws:
java.io.IOException

initClassLoader

protected java.net.URLClassLoader initClassLoader(org.apache.maven.project.MavenProject project,
                                                  org.apache.maven.plugin.logging.Log log)
                                           throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

removeQuote

protected java.lang.String removeQuote(java.lang.String txt)


Copyright © 2008-2009 CodeLutin. All Rights Reserved.