Itiviti / gradle-msbuild-plugin

Gradle plugin for msbuild execution, supports C# project files for now
Apache License 2.0
101 stars 57 forks source link

Warning message: Project XXX found in solution, disabling input/output optimizations #31

Closed tekuser closed 9 years ago

tekuser commented 9 years ago

Hello,

I am using this plugin to build a Visual Studio C++ solution. This solution contains around 15 projects (vcxproj). I want to compile the whole solution so I set the "projectFile" and ignore the "projectName". When I run gradle (no matter of the task to execute), I receive the warning message:

Project XXX found in solution, disabling input/output optimizations

First, there is a mistake in the message: it should be "Project XXX not found ..." because the code in the resolveProject method of Msbuild.groovy:

projectParsed = allProjects[getProjectName()] if (projectParsed == null) { parseProject = false logger.warn "Project ${getProjectName()} found in solution, disabling input/output optimizations" }

As you can see, the warning is displayed only if the projectName project is not found.

Secondly, msbuild supports the "incremental" build so there is no need of gradle optimisation. So I just would like to disable this warning in the case of a whole solution build. I think that if projectName is not defined (null or empty string) then there is no need to display the warning.

Thanks.

gluck commented 9 years ago

Not really a use case I anticipated, but it can't hurt to support it. Thanks.