Example usage for org.springframework.boot.devtools.filewatch ChangedFiles getSourceFolder

List of usage examples for org.springframework.boot.devtools.filewatch ChangedFiles getSourceFolder

Introduction

In this page you can find the example usage for org.springframework.boot.devtools.filewatch ChangedFiles getSourceFolder.

Prototype

public File getSourceFolder() 

Source Link

Document

The source folder being watched.

Usage

From source file:org.springframework.boot.devtools.remote.client.ClassPathChangeUploader.java

private ClassLoaderFiles getClassLoaderFiles(ClassPathChangedEvent event) throws IOException {
    ClassLoaderFiles files = new ClassLoaderFiles();
    for (ChangedFiles changedFiles : event.getChangeSet()) {
        String sourceFolder = changedFiles.getSourceFolder().getAbsolutePath();
        for (ChangedFile changedFile : changedFiles) {
            files.addFile(sourceFolder, changedFile.getRelativeName(), asClassLoaderFile(changedFile));
        }// w  w  w  .  ja  va2 s  . co  m
    }
    return files;
}