Class FileUtil


  • public class FileUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getCanonicalPath​(java.io.File file)  
      static java.lang.String getRelativePath​(java.io.File baseDir, java.io.File file)  
      static boolean isRelativeToPath​(java.io.File baseDir, java.io.File file)  
      static void writeToFile​(java.io.File file, java.lang.String contents)
      file writer helper
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUtil

        public FileUtil()
    • Method Detail

      • writeToFile

        public static void writeToFile​(java.io.File file,
                                       java.lang.String contents)
                                throws java.io.IOException
        file writer helper
        Throws:
        java.io.IOException
      • getCanonicalPath

        public static java.lang.String getCanonicalPath​(java.io.File file)
                                                 throws org.gradle.tooling.BuildException
        Throws:
        org.gradle.tooling.BuildException
      • isRelativeToPath

        public static boolean isRelativeToPath​(java.io.File baseDir,
                                               java.io.File file)
                                        throws org.gradle.tooling.BuildException
        Throws:
        org.gradle.tooling.BuildException
      • getRelativePath

        public static java.lang.String getRelativePath​(java.io.File baseDir,
                                                       java.io.File file)
                                                throws org.gradle.tooling.BuildException
        Throws:
        org.gradle.tooling.BuildException