Class BuildOutputDirectory

  • All Implemented Interfaces:
    BuildDirectory

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

      • location

        private final java.io.File location
      • outputDirectory

        private final java.io.File outputDirectory
      • testOutputDirectory

        private final java.io.File testOutputDirectory
    • Constructor Detail

      • BuildOutputDirectory

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

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

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

      • getLocation

        public java.io.File getLocation()
        Returns the location of the build output directory.
        Specified by:
        getLocation in interface BuildDirectory
        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.
        Specified by:
        getChild in interface BuildDirectory
        Returns:
        The file or folder at the given path relative to the build output directory.
      • getOutputDirectory

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

        public java.io.File getTestOutputDirectory()
        Specified by:
        getTestOutputDirectory in interface BuildDirectory
        Returns:
        the directory where compiled test classes are placed.
      • getP2AgentDirectory

        public java.io.File getP2AgentDirectory()
        Specified by:
        getP2AgentDirectory in interface BuildDirectory
        Returns:
        the directory used for the P2 agent