org.apache.torque.mojo
Class BaseMojo
java.lang.Object
   org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugin.AbstractMojo
       org.apache.torque.mojo.BaseMojo
org.apache.torque.mojo.BaseMojo
- All Implemented Interfaces: 
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses: 
- AbstractMorphSingleMojo, AbstractSQLExecutorMojo, AntTaskMojo, ConvertCloverETLMojo, GenerateTableListingMojo, IdentifyInvalidDataFiles, MorphDataMojo
- public abstract class BaseMojo 
- extends org.apache.maven.plugin.AbstractMojo
Mojo essentials. Contains the "skip" logic that is the de facto standard for
 maven plugins. Contains a number of maven related properties that are common
 to most mojos. Also sets up logging so that if libraries called by a mojo
 issue log statements to Jakarta Commons Logging or Log4j, those log messages
 are shown in maven's output
 
| Fields inherited from interface org.apache.maven.plugin.Mojo | 
| ROLE | 
 
 
 
| 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 | 
 
FS
public static final String FS
SKIP_PACKAGING_TYPE
public static final String SKIP_PACKAGING_TYPE
- See Also:
- Constant Field Values
BaseMojo
public BaseMojo()
beforeExecution
protected void beforeExecution()
                        throws org.apache.maven.plugin.MojoExecutionException,
                               org.apache.maven.plugin.MojoFailureException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
- org.apache.maven.plugin.MojoFailureException
 
afterExecution
protected void afterExecution()
                       throws org.apache.maven.plugin.MojoExecutionException,
                              org.apache.maven.plugin.MojoFailureException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
- org.apache.maven.plugin.MojoFailureException
 
execute
public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
- org.apache.maven.plugin.MojoFailureException
 
executeMojo
protected abstract void executeMojo()
                             throws org.apache.maven.plugin.MojoExecutionException,
                                    org.apache.maven.plugin.MojoFailureException
- 
- Throws:
- org.apache.maven.plugin.MojoExecutionException
- org.apache.maven.plugin.MojoFailureException
 
skipMojo
protected boolean skipMojo()
- 
 Determine if the mojo execution should get skipped.
  This is the case if:- 
 
- 
- Returns:
- trueif the mojo execution should be skipped.
 
getProject
public org.apache.maven.project.MavenProject getProject()
- Returns the maven project.
 
- 
- Returns:
- The maven project where this plugin runs in.
 
getEncoding
public String getEncoding()
- 
 
setEncoding
public void setEncoding(String encoding)
- 
 
isSkip
public boolean isSkip()
- 
 
setSkip
public void setSkip(boolean skip)
- 
 
isForceMojoExecution
public boolean isForceMojoExecution()
- 
 
setForceMojoExecution
public void setForceMojoExecution(boolean forceMojoExecution)
- 
 
getSettings
public org.apache.maven.settings.Settings getSettings()
- 
 
setSettings
public void setSettings(org.apache.maven.settings.Settings settings)
- 
 
getMavenSession
public org.apache.maven.execution.MavenSession getMavenSession()
- 
 
setMavenSession
public void setMavenSession(org.apache.maven.execution.MavenSession mavenSession)
- 
 
setProject
public void setProject(org.apache.maven.project.MavenProject project)
- 
 
isStartMavenLogger
public boolean isStartMavenLogger()
- 
 
setStartMavenLogger
public void setStartMavenLogger(boolean startMavenLogger)
- 
 
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.