public class FileToWatch extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
File |
getDir() |
protected static File |
getFileFromNotInJarClasspath(String relativePath) |
String |
getFileName() |
Pattern |
getRegExPattern() |
protected static boolean |
isInExecutableJar() |
boolean |
isRegEx() |
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!
|
static FileToWatch |
ofFileSystem(String fileAbsolutePath)
ofFileSystem
|
static FileToWatch |
ofRegEx(String dirPath,
String fileNameRegEx,
boolean isClassPath)
ofRegEx
|
String |
toString() |
public static FileToWatch ofFileSystem(String fileAbsolutePath)
public static FileToWatch ofClasspath(String classpathFilePath)
public static FileToWatch ofRegEx(String dirPath, String fileNameRegEx, boolean isClassPath)
public File getDir()
public String getFileName()
public boolean isRegEx()
public Pattern getRegExPattern()
protected static File getFileFromNotInJarClasspath(String relativePath)
protected static boolean isInExecutableJar()
Copyright © 2018. All rights reserved.