Package org.nuiton.jaxx.plugin
Class AbstractJaxxMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.nuiton.plugin.AbstractPlugin
org.nuiton.jaxx.plugin.AbstractJaxxMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.nuiton.plugin.Plugin,org.nuiton.plugin.PluginWithEncoding
- Direct Known Subclasses:
AbstractGenerateHelpMojo,GenerateMojo
public abstract class AbstractJaxxMojo
extends org.nuiton.plugin.AbstractPlugin
implements org.nuiton.plugin.PluginWithEncoding
Abstract Jaxx Mojo.
- Since:
- 1.3
- Author:
- Tony Chemit - chemit@codelutin.com
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractJaxxMojo.JaxxFileUpdaterTo test if a jaxx source (or his css ) file is newser than his generated java source file.Nested classes/interfaces inherited from interface org.nuiton.plugin.Plugin
org.nuiton.plugin.Plugin.InitState, org.nuiton.plugin.Plugin.Packaging -
Field Summary
Fields Modifier and Type Field Description protected booleangenerateHelpFlag to activate help id detection while parsing jaxx files.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors Constructor Description AbstractJaxxMojo() -
Method Summary
Modifier and Type Method Description protected booleancheckPackaging()java.lang.StringgetEncoding()protected java.lang.LonggetLastModified(java.io.File dir)org.apache.maven.project.MavenProjectgetProject()abstract java.io.FilegetTargetDirectory()booleanisForce()booleanisVerbose()voidsetEncoding(java.lang.String encoding)voidsetForce(boolean force)voidsetProject(org.apache.maven.project.MavenProject project)abstract voidsetTargetDirectory(java.io.File targetDirectory)voidsetVerbose(boolean verbose)Methods inherited from class org.nuiton.plugin.AbstractPlugin
acceptPackaging, addCompileSourceRoots, addDirectoryToUrlsList, addResourceDir, addTestCompileSourceRoots, addTestResourceDir, addUrlToUrlsList, afterExecute, backupFile, checkEncoding, checkResource, checkRunOnceDone, checkSkip, copyFile, createDirectoryIfNecessary, createNewFile, deleteFile, doAction, execute, getBackupFile, getFileFromBasedir, getFilesToTreate, getFilesToTreateForRoots, getRootProject, getTemplate, hasClassPath, init, initClassLoader, isExecutionRoot, isFileNewerThanPomFile, needInvoke, needInvoke, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFileMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute, getLog, setLog
-
Field Details
-
generateHelp
@Parameter(property="jaxx.generateHelp", defaultValue="false") protected boolean generateHelpFlag to activate help id detection while parsing jaxx files. By default, not active.- Since:
- 1.3
-
-
Constructor Details
-
AbstractJaxxMojo
public AbstractJaxxMojo()
-
-
Method Details
-
getTargetDirectory
public abstract java.io.File getTargetDirectory() -
setTargetDirectory
public abstract void setTargetDirectory(java.io.File targetDirectory) -
checkPackaging
protected boolean checkPackaging()- Overrides:
checkPackagingin classorg.nuiton.plugin.AbstractPlugin
-
getProject
public org.apache.maven.project.MavenProject getProject()- Specified by:
getProjectin interfaceorg.nuiton.plugin.Plugin
-
isVerbose
public boolean isVerbose()- Specified by:
isVerbosein interfaceorg.nuiton.plugin.Plugin
-
setProject
public void setProject(org.apache.maven.project.MavenProject project)- Specified by:
setProjectin interfaceorg.nuiton.plugin.Plugin
-
setVerbose
public void setVerbose(boolean verbose)- Specified by:
setVerbosein interfaceorg.nuiton.plugin.Plugin
-
getEncoding
public java.lang.String getEncoding()- Specified by:
getEncodingin interfaceorg.nuiton.plugin.PluginWithEncoding
-
setEncoding
public void setEncoding(java.lang.String encoding)- Specified by:
setEncodingin interfaceorg.nuiton.plugin.PluginWithEncoding
-
isForce
public boolean isForce() -
setForce
public void setForce(boolean force) -
getLastModified
protected java.lang.Long getLastModified(java.io.File dir)
-