Package org.impalaframework.file.handler

Examples of org.impalaframework.file.handler.FileRecurser


*/
public class FileMonitorImpl implements FileMonitor {

  public long lastModified(File file) {
    FileMonitorRecurserHandler handler = new FileMonitorRecurserHandler();
    new FileRecurser().recurse(handler, file);
    return handler.getLastModified();
  }
View Full Code Here


    return handler.getLastModified();
  }

  public long lastModified(File[] files) {
    FileMonitorRecurserHandler handler = new FileMonitorRecurserHandler();
    final FileRecurser fileRecurser = new FileRecurser();
    long lastModified = 0L;
    for (File file : files) {
      fileRecurser.recurse(handler, file);
      lastModified = Math.max(lastModified, handler.getLastModified());
    }
    return lastModified;
  }
View Full Code Here

    CommandPropertyValue classHolder = properties.get("class");

    String searchText = classHolder.getValue();

    ClassFindFileRecurseHandler handler = new ClassFindFileRecurseHandler(searchText);
    FileRecurser recurser = new FileRecurser();

    for (File directory : classDirectories) {
      getDirectoryFilter().setRootPath(directory);
      handler.setRootPath(directory.getAbsolutePath());
      recurser.recurse(handler, directory);
    }

    foundClasses = handler.foundFiles;
    return true;
  }
View Full Code Here

TOP

Related Classes of org.impalaframework.file.handler.FileRecurser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.