Class BuildOutputDirectory


  • public class BuildOutputDirectory
    extends java.lang.Object
    Represents the build output directory of a Maven project (aka "target folder").
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.File location  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getChild​(java.lang.String path)
      Convenience method for obtaining an file/folder in the build output directory.
      java.io.File getLocation()
      Returns the location of the build output directory.
      • Methods inherited from class java.lang.Object

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

      • location

        private final java.io.File location
    • Constructor Detail

      • BuildOutputDirectory

        public BuildOutputDirectory​(java.io.File location)
      • BuildOutputDirectory

        public BuildOutputDirectory​(java.lang.String directory)
    • Method Detail

      • getLocation

        public java.io.File getLocation()
        Returns the location of the build output directory.
        Returns:
        never null
      • getChild

        public java.io.File getChild​(java.lang.String path)
        Convenience method for obtaining an file/folder in the build output directory.
        Returns:
        The file or folder at the given path relative to the build output directory.