Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error to locate grunt.cmd #27

Open
fredgate opened this issue Oct 12, 2015 · 0 comments
Open

Error to locate grunt.cmd #27

fredgate opened this issue Oct 12, 2015 · 0 comments

Comments

@fredgate
Copy link

Since commit eee037c, search of grunt.cmd path fails when the where command is used.
The reason is that the ConsoleToMsBuild attribute has been removed from Exec task so the TaskParameter named ConsoleOutput is no longer filled and the GruntExecutable becomes empty. No error is detected because the command is successfully executed and the ExitCode is 0.
But the GruntExecutable is undefined and the execution of the grunt file failed.

The Grunt target should be restored as it :

         <Exec Command="$(WINDIR)\system32\where.exe grunt"
             ContinueOnError="true"
             IgnoreExitCode="true"
             ConsoleToMsBuild="true"
             Condition=" !Exists('$(GruntExecutable)') ">
             <Output TaskParameter="ExitCode" PropertyName="GruntExitCode" />
             <Output TaskParameter="ConsoleOutput" PropertyName="GruntExecutable" />
         </Exec>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant