Class BuildTarget


  • public class BuildTarget
    extends java.lang.Object
    Build target contains metadata about an artifact (for example library, test, or binary artifact). Using vocabulary of other build tools: * sbt: a build target is a combined project + config. Example: * a regular JVM project with main and test configurations will have 2 build targets, one for main and one for test. * a single configuration in a single project that contains both Java and Scala sources maps to one BuildTarget. * a project with crossScalaVersions 2.11 and 2.12 containing main and test configuration in each will have 4 build targets. * a Scala 2.11 and 2.12 cross-built project for Scala.js and the JVM with main and test configurations will have 8 build targets. * Pants: a pants target corresponds one-to-one with a BuildTarget * Bazel: a bazel target corresponds one-to-one with a BuildTarget The general idea is that the BuildTarget data structure should contain only information that is fast or cheap to compute.
    • Method Detail

      • getDisplayName

        @Pure
        public java.lang.String getDisplayName()
      • setDisplayName

        public void setDisplayName​(java.lang.String displayName)
      • getBaseDirectory

        @Pure
        public java.lang.String getBaseDirectory()
      • setBaseDirectory

        public void setBaseDirectory​(java.lang.String baseDirectory)
      • getTags

        @Pure
        public java.util.List<java.lang.String> getTags()
      • setTags

        public void setTags​(java.util.List<java.lang.String> tags)
      • getLanguageIds

        @Pure
        public java.util.List<java.lang.String> getLanguageIds()
      • setLanguageIds

        public void setLanguageIds​(java.util.List<java.lang.String> languageIds)
      • getDataKind

        @Pure
        public java.lang.String getDataKind()
      • setDataKind

        public void setDataKind​(java.lang.String dataKind)
      • getData

        @Pure
        public java.lang.Object getData()
      • setData

        public void setData​(java.lang.Object data)
      • toString

        @Pure
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        @Pure
        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        @Pure
        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object