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 class
AbstractJaxxMojo.JaxxFileUpdater
To test if a jaxx source (or his css ) file is newser than his generated java source file.
-
Field Summary
Fields Modifier and Type Field Description protected boolean
generateHelp
Flag to activate help id detection while parsing jaxx files.
-
Constructor Summary
Constructors Constructor Description AbstractJaxxMojo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
checkPackaging()
String
getEncoding()
protected Long
getLastModified(File dir)
org.apache.maven.project.MavenProject
getProject()
abstract File
getTargetDirectory()
boolean
isForce()
boolean
isVerbose()
void
setEncoding(String encoding)
void
setForce(boolean force)
void
setProject(org.apache.maven.project.MavenProject project)
abstract void
setTargetDirectory(File targetDirectory)
void
setVerbose(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, writeFile
-
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
-
-
-
Method Detail
-
getTargetDirectory
public abstract File getTargetDirectory()
-
setTargetDirectory
public abstract void setTargetDirectory(File targetDirectory)
-
checkPackaging
protected boolean checkPackaging()
- Overrides:
checkPackaging
in classorg.nuiton.plugin.AbstractPlugin
-
getProject
public org.apache.maven.project.MavenProject getProject()
- Specified by:
getProject
in interfaceorg.nuiton.plugin.Plugin
-
isVerbose
public boolean isVerbose()
- Specified by:
isVerbose
in interfaceorg.nuiton.plugin.Plugin
-
setProject
public void setProject(org.apache.maven.project.MavenProject project)
- Specified by:
setProject
in interfaceorg.nuiton.plugin.Plugin
-
setVerbose
public void setVerbose(boolean verbose)
- Specified by:
setVerbose
in interfaceorg.nuiton.plugin.Plugin
-
getEncoding
public String getEncoding()
- Specified by:
getEncoding
in interfaceorg.nuiton.plugin.PluginWithEncoding
-
setEncoding
public void setEncoding(String encoding)
- Specified by:
setEncoding
in interfaceorg.nuiton.plugin.PluginWithEncoding
-
isForce
public boolean isForce()
-
setForce
public void setForce(boolean force)
-
-