org.nuiton.jaxx.plugin
Class AbstractJaxxMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.nuiton.plugin.AbstractPlugin
          extended by 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:
tchemit

Nested Class Summary
static class AbstractJaxxMojo.JaxxFileUpdater
          To 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
protected  boolean generateHelp
          Flag to activate help id detection while parsing jaxx files.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractJaxxMojo()
           
 
Method Summary
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, rejectPackaging, removeCompileSourceRoots, removeTestCompileSourceRoots, renameFile, writeFile
 
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
 
Methods inherited from interface org.apache.maven.plugin.Mojo
execute, getLog, setLog
 

Field Detail

generateHelp

protected boolean generateHelp
Flag to activate help id detection while parsing jaxx files.

By default, not active.

Since:
1.3
Is defined by:
expression:
${jaxx.generateHelp}
default-value:
false
Constructor Detail

AbstractJaxxMojo

public AbstractJaxxMojo()
Method Detail

getTargetDirectory

public abstract File getTargetDirectory()

setTargetDirectory

public abstract void setTargetDirectory(File targetDirectory)

checkPackaging

protected boolean checkPackaging()
Overrides:
checkPackaging in class org.nuiton.plugin.AbstractPlugin

getProject

public org.apache.maven.project.MavenProject getProject()
Specified by:
getProject in interface org.nuiton.plugin.Plugin

isVerbose

public boolean isVerbose()
Specified by:
isVerbose in interface org.nuiton.plugin.Plugin

setProject

public void setProject(org.apache.maven.project.MavenProject project)
Specified by:
setProject in interface org.nuiton.plugin.Plugin

setVerbose

public void setVerbose(boolean verbose)
Specified by:
setVerbose in interface org.nuiton.plugin.Plugin

getEncoding

public String getEncoding()
Specified by:
getEncoding in interface org.nuiton.plugin.PluginWithEncoding

setEncoding

public void setEncoding(String encoding)
Specified by:
setEncoding in interface org.nuiton.plugin.PluginWithEncoding

isForce

public boolean isForce()

setForce

public void setForce(boolean force)

getLastModified

protected Long getLastModified(File dir)


Copyright © 2008-2011 CodeLutin. All Rights Reserved.