Skip to content

Implement feature that allows tasks to get the global properties - #4939

Merged
rainersigwald merged 5 commits into
dotnet:masterfrom
jeffkl:task-getglobalproperties
Nov 25, 2019
Merged

rainersigwald merged 5 commits into
dotnet:masterfrom
jeffkl:task-getglobalproperties

Conversation

@jeffkl

@jeffkl jeffkl commented Nov 21, 2019

Copy link
Copy Markdown
Contributor

This is an implementation of #4925 which allows tasks to get the current project's global properties.

I added an IBuildEngine6 and plumbed the global properties to the appropriate task hosts.

Comment thread src/Framework/IBuildEngine6.cs Resolved

@rainersigwald rainersigwald left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should accessing this emit a log event? I kinda want it to to minimize the "invisible input" problem.

Comment thread src/Framework/IBuildEngine6.cs Resolved
@jeffkl

jeffkl commented Nov 21, 2019

Copy link
Copy Markdown
Contributor Author

It seems a little weird to log a message but it does sort of make sense. I had coded up something but I couldn't decide on the message as I'm not sure what it should say?

TaskA requested the current global properties.

Fetching the current global properties for TaskA

Fetched global properties for TaskA

TaskA requested the following global properties:
  Property1: Value1

If there's a message you like, I'll gladly put it in there.

@jeffkl

jeffkl commented Nov 21, 2019

Copy link
Copy Markdown
Contributor Author

/cc @AndyGerlicher

@AndyGerlicher

Copy link
Copy Markdown
Contributor

I would say no on logging? If we want that maybe in the style of #4461 which was reverted. Logging the reads seems like a natural extension of that.

@jeffkl

jeffkl commented Nov 22, 2019

Copy link
Copy Markdown
Contributor Author

@AndyGerlicher I agree, let's add logging events later as part of the bigger effort to capture things that effect the build, what do you think @rainersigwald?

@jeffkl

jeffkl commented Nov 22, 2019

Copy link
Copy Markdown
Contributor Author

@rainersigwald gentle ping...

@rainersigwald
rainersigwald merged commit 81d9a23 into dotnet:master Nov 25, 2019
@jeffkl
jeffkl deleted the task-getglobalproperties branch November 25, 2019 22:28
@jeffkl

jeffkl commented Nov 25, 2019

Copy link
Copy Markdown
Contributor Author

Thanks all!

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

Successfully merging this pull request may close these issues.

4 participants