Example usage for org.springframework.boot.devtools.classpath ClassPathChangedEvent getChangeSet

List of usage examples for org.springframework.boot.devtools.classpath ClassPathChangedEvent getChangeSet

Introduction

In this page you can find the example usage for org.springframework.boot.devtools.classpath ClassPathChangedEvent getChangeSet.

Prototype

public Set<ChangedFiles> getChangeSet() 

Source Link

Document

Return details of the files that changed.

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 . j  a v  a  2s  . c  om*/
    }
    return files;
}