mirror of
https://github.com/ysoftdevs/odc-analyzer.git
synced 2026-03-20 16:24:32 +01:00
Filter profiles on a better place
This commit is contained in:
@@ -259,8 +259,8 @@ class OdcService @Inject() (odcConfig: OdcConfig, odcDbConnectionConfig: OdcDbCo
|
|||||||
case other => sys.error(s"Seems like some unexpected files: $other")
|
case other => sys.error(s"Seems like some unexpected files: $other")
|
||||||
}
|
}
|
||||||
if (Files.exists(libDir)) {
|
if (Files.exists(libDir)) {
|
||||||
val profiles = Files.list(libDir).iterator().asScala.toIndexedSeq.map(_.getFileName.toString)
|
val profiles = (Files.list(libDir).iterator().asScala.toIndexedSeq.map(_.getFileName.toString).toSet -- Set("tools")).toIndexedSeq.sorted // TODO: handle list of frameworks better
|
||||||
for (targetFramework <- profiles.toSet -- Set("tools")) { // TODO: handle list of frameworks better
|
for (targetFramework <- profiles) {
|
||||||
val csprojFile = dir.resolve("ad-hoc-project-" + targetFramework + ".csproj")
|
val csprojFile = dir.resolve("ad-hoc-project-" + targetFramework + ".csproj")
|
||||||
val tfDir = dir.resolve("framework-" + targetFramework)
|
val tfDir = dir.resolve("framework-" + targetFramework)
|
||||||
Files.createDirectory(tfDir)
|
Files.createDirectory(tfDir)
|
||||||
|
|||||||
Reference in New Issue
Block a user