From 750871235c3bb59418c7817c1342d4daa1c4fb98 Mon Sep 17 00:00:00 2001 From: Aurelien Descamps Date: Tue, 1 Mar 2016 15:23:40 +0100 Subject: [PATCH] Fix projectParser.name not existing Json format has changed. Before, we had { "Compile": [ and now { "project-name": { "Compile": [ --- src/main/groovy/com/ullink/Msbuild.groovy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/groovy/com/ullink/Msbuild.groovy b/src/main/groovy/com/ullink/Msbuild.groovy index 55ef397..d722064 100644 --- a/src/main/groovy/com/ullink/Msbuild.groovy +++ b/src/main/groovy/com/ullink/Msbuild.groovy @@ -133,8 +133,9 @@ class Msbuild extends ConventionTask { } } } else if (isProjectBuild()) { - projectParsed = new ProjectFileParser(msbuild: this, eval: parseProjectFile(getRootedProjectFile())) - allProjects[projectParsed.projectName] = projectParsed + def result = parseProjectFile(getRootedProjectFile()) + allProjects = result.collectEntries {[it.key, new ProjectFileParser(msbuild: this, eval: it.value)]} + projectParsed = allProjects.values().first() } } projectParsed != null