Skip to content

Commit

Permalink
Solution file parsing removed for empty projectName
Browse files Browse the repository at this point in the history
  • Loading branch information
tekuser committed May 14, 2015
1 parent 55eca38 commit 816f32b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/groovy/com/ullink/Msbuild.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,12 @@ class Msbuild extends ConventionTask {
boolean resolveProject() {
if (projectParsed == null && parseProject) {
if (isSolutionBuild()) {
def result = parseProjectFile(getSolutionFile())
allProjects = result.collectEntries { [it.key, new ProjectFileParser(msbuild: this, eval: it.value)] }
def projectName = getProjectName()
if (projectName == null || projectName.isEmpty()) {
parseProject = false
} else {
def result = parseProjectFile(getSolutionFile())
allProjects = result.collectEntries { [it.key, new ProjectFileParser(msbuild: this, eval: it.value)] }
projectParsed = allProjects[projectName]
if (projectParsed == null) {
parseProject = false
Expand Down

0 comments on commit 816f32b

Please sign in to comment.