Build: Fix JPS importer (DistModelBuilder) for Gradle 5.0
This commit is contained in:
@@ -180,14 +180,14 @@ open class DistModelBuilder(val rootProject: Project, pw: PrintWriter) {
|
||||
})
|
||||
}
|
||||
sourcePath is CompositeFileCollection -> ctx.child("COMPOSITE FILE COLLECTION") { child ->
|
||||
sourcePath.visitRootElements(object : FileCollectionVisitor {
|
||||
sourcePath.visitLeafCollections(object : FileCollectionLeafVisitor {
|
||||
override fun visitDirectoryTree(directoryTree: DirectoryFileTree) {
|
||||
child.child("DIR TREE") {
|
||||
it.addCopyOf(directoryTree.dir.path)
|
||||
}
|
||||
}
|
||||
|
||||
override fun visitTree(fileTree: FileTreeInternal) {
|
||||
override fun visitGenericFileTree(fileTree: FileTreeInternal) {
|
||||
child.child("TREE") {
|
||||
processSourcePath(fileTree, it)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user