Logs a warning instead of skipping empty bdio.
@@ -162,7 +162,10 @@ class DetectProjectManager {
def components = dependencyGraphTransformer.transformDependencyGraph(it.dependencyGraph, aggregateBdioDocument.project, it.dependencyGraph.getRootDependencies(), nodeMap)
aggregateBdioDocument.components.addAll(components)
} else {
- if (it.dependencyGraph) {
+ if (it.dependencyGraph == null || it.dependencyGraph.getRootDependencies().size() <= 0) {
+ logger.warn("Could not find any dependencies for code location ${it.sourcePath}")
+ }
+
final SimpleBdioDocument simpleBdioDocument = createSimpleBdioDocument(detectProject, it)
String projectPath = detectFileManager.extractFinalPieceFromPath(it.sourcePath)
String projectName = detectProject.projectName
@@ -174,9 +177,6 @@ class DetectProjectManager {
}
final File createdBdioFile = writeSimpleBdioDocument(outputFile, simpleBdioDocument)
bdioFiles.add(createdBdioFile)
- } else {
- logger.debug("Could not find any dependencies for code location ${it.sourcePath}")
- }
}
}
