Class FileToWatch

java.lang.Object
org.spincast.plugins.hotswap.fileswatcher.FileToWatch

public class FileToWatch extends Object
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Method Details

    • ofFileSystem

      public static FileToWatch ofFileSystem(String fileAbsolutePath)
      ofFileSystem
    • ofClasspath

      public static FileToWatch ofClasspath(String classpathFilePath)
      Note that a file from the classpath can only be watched when the application is ran locally in development mode, not when it runs from a .jar!
    • ofRegEx

      public static FileToWatch ofRegEx(String dirPath, String fileNameRegEx, boolean isClassPath)
      ofRegEx
    • getDir

      public File getDir()
    • getFileName

      public String getFileName()
    • isRegEx

      public boolean isRegEx()
    • getRegExPattern

      public Pattern getRegExPattern()
    • getFileFromNotInJarClasspath

      protected static File getFileFromNotInJarClasspath(String relativePath)
    • isInExecutableJar

      protected static boolean isInExecutableJar()
    • toString

      public String toString()
      Overrides:
      toString in class Object