Class AbstractUpToDatePropertyMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
    Direct Known Subclasses:
    UpToDatePropertiesMojo, UpToDatePropertyMojo

    abstract class AbstractUpToDatePropertyMojo
    extends AbstractDefinePropertyMojo
    Abstract base for setting properties according to whether sets of source and object resources are respectively up to date with each other.
    Since:
    1.12
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.slf4j.Logger log  
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void execute​(UpToDatePropertySetting config)  
      private java.io.File getFile​(org.apache.maven.shared.model.fileset.FileSet fileSet, boolean useOutputDirectory, java.lang.String path)  
      private boolean isUpToDate​(java.io.File srcFile, java.io.File targetFile)  
      • 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
    • Field Detail

      • log

        private final org.slf4j.Logger log
    • Constructor Detail

      • AbstractUpToDatePropertyMojo

        protected AbstractUpToDatePropertyMojo()
    • Method Detail

      • execute

        protected void execute​(UpToDatePropertySetting config)
                        throws org.apache.maven.plugin.MojoExecutionException,
                               org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • getFile

        private java.io.File getFile​(org.apache.maven.shared.model.fileset.FileSet fileSet,
                                     boolean useOutputDirectory,
                                     java.lang.String path)
      • isUpToDate

        private boolean isUpToDate​(java.io.File srcFile,
                                   java.io.File targetFile)