Java 类org.springframework.boot.devtools.classpath.ClassPathFolders 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:FileWatchingFailureHandler.java   
@Override
public Outcome handle(Throwable failure) {
    CountDownLatch latch = new CountDownLatch(1);
    FileSystemWatcher watcher = this.fileSystemWatcherFactory.getFileSystemWatcher();
    watcher.addSourceFolders(
            new ClassPathFolders(Restarter.getInstance().getInitialUrls()));
    watcher.addListener(new Listener(latch));
    watcher.start();
    try {
        latch.await();
    }
    catch (InterruptedException ex) {
        Thread.currentThread().interrupt();
    }
    return Outcome.RETRY;
}
项目:spring-boot-concourse    文件:FileWatchingFailureHandler.java   
@Override
public Outcome handle(Throwable failure) {
    CountDownLatch latch = new CountDownLatch(1);
    FileSystemWatcher watcher = this.fileSystemWatcherFactory.getFileSystemWatcher();
    watcher.addSourceFolders(
            new ClassPathFolders(Restarter.getInstance().getInitialUrls()));
    watcher.addListener(new Listener(latch));
    watcher.start();
    try {
        latch.await();
    }
    catch (InterruptedException ex) {
        // Ignore
    }
    return Outcome.RETRY;
}
项目:contestparser    文件:FileWatchingFailureHandler.java   
@Override
public Outcome handle(Throwable failure) {
    failure.printStackTrace();
    CountDownLatch latch = new CountDownLatch(1);
    FileSystemWatcher watcher = this.fileSystemWatcherFactory.getFileSystemWatcher();
    watcher.addSourceFolders(
            new ClassPathFolders(Restarter.getInstance().getInitialUrls()));
    watcher.addListener(new Listener(latch));
    watcher.start();
    try {
        latch.await();
    }
    catch (InterruptedException ex) {
        // Ignore
    }
    return Outcome.RETRY;
}