Class AppPaths


  • public class AppPaths
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  AppPaths.BuildTool  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TARGET_DIR  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AppPaths​(java.util.Set<java.nio.file.Path> projectPaths, java.util.Collection<java.nio.file.Path> classesPaths, boolean isJar, AppPaths.BuildTool bt, java.lang.String resourcesBasePath, java.nio.file.Path outputTarget)  
    • Constructor Detail

      • AppPaths

        protected AppPaths​(java.util.Set<java.nio.file.Path> projectPaths,
                           java.util.Collection<java.nio.file.Path> classesPaths,
                           boolean isJar,
                           AppPaths.BuildTool bt,
                           java.lang.String resourcesBasePath,
                           java.nio.file.Path outputTarget)
        Parameters:
        projectPaths -
        classesPaths -
        isJar -
        bt -
        resourcesBasePath - "main" or "test"
    • Method Detail

      • fromProjectDir

        public static AppPaths fromProjectDir​(java.nio.file.Path projectDir,
                                              java.nio.file.Path outputTarget)
      • fromTestDir

        public static AppPaths fromTestDir​(java.nio.file.Path projectDir)
        Builder to be used only for tests, where all resources must be present in "src/test/resources" directory
        Parameters:
        projectDir -
        Returns:
      • getPaths

        public java.nio.file.Path[] getPaths()
      • getFirstProjectPath

        public java.nio.file.Path getFirstProjectPath()
      • getResourceFiles

        public java.io.File[] getResourceFiles()
      • getResourcePaths

        public java.nio.file.Path[] getResourcePaths()
      • getSourcePaths

        public java.nio.file.Path[] getSourcePaths()
      • getClassesPaths

        public java.util.Collection<java.nio.file.Path> getClassesPaths()
      • getOutputTarget

        public java.nio.file.Path getOutputTarget()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object