List of usage examples for org.apache.commons.io.monitor FileEntry FileEntry
public FileEntry(File file)
From source file:com.owncloud.android.services.observer.AdvancedFileAlterationObserver.java
public AdvancedFileAlterationObserver(SyncedFolder syncedFolder, FileFilter fileFilter) { super(syncedFolder.getLocalPath(), fileFilter); this.rootEntry = new FileEntry(new File(syncedFolder.getLocalPath())); this.fileFilter = fileFilter; this.syncedFolder = syncedFolder; comparator = NameFileComparator.NAME_SYSTEM_COMPARATOR; }
From source file:org.opoo.press.file.WatchableFiles.java
public WatchableFiles(File... files) { if (files == null || files.length == 0) { throw new IllegalArgumentException("files are required."); }/*from w ww.j a v a 2 s . c om*/ entries = new FileEntry[files.length]; for (int i = 0; i < files.length; i++) { entries[i] = new FileEntry(files[i]); } }
From source file:org.opoo.press.resource.CompassBuilder.java
@Override public void initialize() throws Exception { log.debug("Initialize the observer."); configFileEntry = new FileEntry(configFile); configFileEntry.refresh(configFile); prepareSassAndCssPaths();// ww w.jav a 2 s . com sassWatchable = new WatchableDirectory(sassPath, new SassFileFilter()); sassWatchable.initialize(); }