Class BuildOutputDirectory

  • All Implemented Interfaces:
    BuildDirectory

    public class BuildOutputDirectory
    extends Object
    implements BuildDirectory
    Represents the build output directory of a Maven project (aka "target folder").
    • Constructor Detail

      • BuildOutputDirectory

        @Deprecated
        public BuildOutputDirectory​(String location)
        Deprecated.
        will be removed in next release!
        Parameters:
        location -
      • BuildOutputDirectory

        public BuildOutputDirectory​(File location)
      • BuildOutputDirectory

        public BuildOutputDirectory​(File location,
                                    File outputDirectory,
                                    File testOutputDirectory)
    • Method Detail

      • getLocation

        public File getLocation()
        Returns the location of the build output directory.
        Specified by:
        getLocation in interface BuildDirectory
        Returns:
        never null
      • getChild

        public File getChild​(String path)
        Convenience method for obtaining an file/folder in the build output directory.
        Specified by:
        getChild in interface BuildDirectory
        Returns:
        The file or folder at the given path relative to the build output directory.
      • getOutputDirectory

        public File getOutputDirectory()
        Specified by:
        getOutputDirectory in interface BuildDirectory
        Returns:
        the directory where compiled application classes are placed.