Class BuildBuckConfig

    • Constructor Detail

      • BuildBuckConfig

        public BuildBuckConfig()
    • Method Detail

      • getMaxActionGraphCacheEntries

        @Lazy
        public int getMaxActionGraphCacheEntries()
      • useBuckBinaryHash

        @Lazy
        public boolean useBuckBinaryHash()
        Whether Buck should use Buck binary hash or git commit id as the core key in all rule keys.

        The binary hash reflects the code that can affect the content of artifacts.

        By default git commit id is used as the core key.

        Returns:
        True if binary hash should be used as the core key
      • getKeySeed

        @Lazy
        public int getKeySeed()
      • getNumThreads

        @Lazy
        public int getNumThreads()
        Returns:
        the number of threads Buck should use.
      • getNumThreadsForSchedulerPool

        @Lazy
        public int getNumThreadsForSchedulerPool()
        Returns:
        the number of threads to be used for the scheduled executor thread pool.
      • getBuildInputRuleKeyFileSizeLimit

        @Lazy
        public long getBuildInputRuleKeyFileSizeLimit()
        Returns:
        the maximum size of files input based rule keys will be willing to hash.
      • getDefaultMaximumNumberOfThreads

        @Lazy
        public int getDefaultMaximumNumberOfThreads()
      • getNumThreads

        public int getNumThreads​(int defaultValue)
        Returns:
        the number of threads Buck should use or the specified defaultValue if it is not set.
      • getBuckOutCompatLink

        @Lazy
        public boolean getBuckOutCompatLink()
        Returns:
        whether to symlink the default output location (`buck-out`) to the user-provided override for compatibility.
      • getBuildVersions

        @Lazy
        public boolean getBuildVersions()
        Returns:
        whether to enabled versions on build/test command.
      • getTargetsVersions

        @Lazy
        public boolean getTargetsVersions()
        Returns:
        whether to enabled versions on targets command.
      • getRuleKeyCaching

        @Lazy
        public boolean getRuleKeyCaching()
        Returns:
        whether to enable caching of rule key calculations between builds.
      • createBuildOutputSymLinksEnabled

        @Lazy
        public boolean createBuildOutputSymLinksEnabled()
        Whether to create symlinks of build output in buck-out/last.
      • isEmbeddedCellBuckOutEnabled

        @Lazy
        public boolean isEmbeddedCellBuckOutEnabled()
      • getPathToBuildPrehookScript

        @Lazy
        public Optional<String> getPathToBuildPrehookScript()
      • getBuildPrehookScriptInterpreterAndArgs

        @Lazy
        public Optional<com.google.common.collect.ImmutableList<String>> getBuildPrehookScriptInterpreterAndArgs()
      • getShouldDeleteTemporaries

        @Lazy
        public boolean getShouldDeleteTemporaries()
        Whether to delete temporary files generated to run a build rule immediately after the rule is run.
      • getFileHashCacheMode

        @Lazy
        public FileHashCacheMode getFileHashCacheMode()
        Returns:
        whether to enable new file hash cache engine.
      • shouldBuckOutIncludeTargetConfigHash

        @Lazy
        public boolean shouldBuckOutIncludeTargetConfigHash()