Class ManipulationIO


  • public final class ManipulationIO
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ManipulationModel readManipulationModel​(java.io.File rootDir)
      This is meant to be called from as part of a Gradle task that is executed for each project/subproject of the build.
      static void writeManipulationModel​(java.io.File rootDir, ManipulationModel updatedManipulationModel)
      Write the model to disk - override any existing file that might exist.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MANIPULATION_FILE_NAME

        public static final java.lang.String MANIPULATION_FILE_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • readManipulationModel

        public static ManipulationModel readManipulationModel​(java.io.File rootDir)
        This is meant to be called from as part of a Gradle task that is executed for each project/subproject of the build. It assumes that a task for various projects is never called in parallel.
        Parameters:
        rootDir - the root directory
        Returns:
        a valid manipulation model
      • writeManipulationModel

        public static void writeManipulationModel​(java.io.File rootDir,
                                                  ManipulationModel updatedManipulationModel)
                                           throws org.commonjava.maven.ext.common.ManipulationException
        Write the model to disk - override any existing file that might exist.
        Parameters:
        rootDir - the root directory
        updatedManipulationModel - whether to update the manipulation model
        Throws:
        org.commonjava.maven.ext.common.ManipulationException - if an error occurs