Class BuckPaths


  • public abstract class BuckPaths
    extends Object
    • Constructor Detail

      • BuckPaths

        public BuckPaths()
    • Method Detail

      • createDefaultBuckPaths

        public static BuckPaths createDefaultBuckPaths​(CanonicalCellName cellName,
                                                       Path rootPath,
                                                       boolean buckOutIncludeTargetConfigHash)
      • getBuckOutIncludeTargetConfigHashFromRootCellConfig

        public static boolean getBuckOutIncludeTargetConfigHashFromRootCellConfig​(Config config)
        Is hashed buck-out enabled? Must be queried using root cell buckconfig.
      • getBuckOut

        public abstract Path getBuckOut()
        The relative path to the directory where Buck will generate its files.
      • checkBuckOut

        @Check
        protected void checkBuckOut()
      • getConfiguredBuckOut

        public abstract Path getConfiguredBuckOut()
        The relative path to the directory where Buck will generate its files. This is used when configuring the output directory to some used-defined value and is a stop-gap until we can support configuring all output paths. However, for now, only certain paths below will use this path.
      • shouldIncludeTargetConfigHash

        public abstract boolean shouldIncludeTargetConfigHash()
        Whether to include the target configuration hash on buck-out.
      • getCurrentVersionFile

        @Derived
        public Path getCurrentVersionFile()
        The version the buck output directory was created for
      • getGenDir

        @Derived
        public Path getGenDir()
      • getResDir

        @Derived
        public Path getResDir()
      • getScratchDir

        @Derived
        public Path getScratchDir()
      • getAnnotationDir

        @Derived
        public Path getAnnotationDir()
      • getLogDir

        @Derived
        public Path getLogDir()
      • getJournalDir

        @Derived
        public Path getJournalDir()
      • getTraceDir

        @Derived
        public Path getTraceDir()
      • getCacheDir

        @Derived
        public Path getCacheDir()
      • getTmpDir

        @Derived
        public Path getTmpDir()
      • getXcodeDir

        @Derived
        public Path getXcodeDir()
      • getTrashDir

        @Derived
        public Path getTrashDir()
      • getOfflineLogDir

        @Derived
        public Path getOfflineLogDir()
      • getRemoteSandboxDir

        @Derived
        public Path getRemoteSandboxDir()
      • getLastOutputDir

        @Derived
        public Path getLastOutputDir()
      • getEmbeddedCellsBuckOutBaseDir

        @Derived
        public Path getEmbeddedCellsBuckOutBaseDir()
      • getProjectRootDir

        @Derived
        public Path getProjectRootDir()
      • getSymlinkPathForDir

        public Path getSymlinkPathForDir​(Path unconfiguredDirInBuckOut)
      • withConfiguredBuckOut

        public BuckPaths withConfiguredBuckOut​(Path configuredBuckOut)