Skip to content

Store the gradle plugin logfile inside the build directory #674

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

Merged
merged 2 commits into from
Aug 27, 2019
Merged

Store the gradle plugin logfile inside the build directory #674

merged 2 commits into from
Aug 27, 2019

Conversation

hithran
Copy link
Contributor

@hithran hithran commented Aug 23, 2019

Purpose

The location of the logfile is changed from the users temp directory to the gradle build directory.
This in order to prevent an issues when using the plugin on Windows while the project folder is not on C:\

References

References #669

Changes

  • Change the logfile location from the users temp directory to the gradle build directory
  • Log file is no longer created when the plugin is configured

Background Context

As discussed in #669, there is a split on : when passing the logfile location, which complicates the approach of passing a Windows path with a drive letter. Writing the logfile to the gradle build directory seems the next best thing when trying to get it all to work.

@lightbend-cla-validator

Hi @hithran,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

http://www.lightbend.com/contribute/cla

@akka-ci
Copy link

akka-ci commented Aug 23, 2019

Thank you for your pull request! After a quick sanity check one of the team will reply with 'OK TO TEST' to kick off our automated validation on Jenkins. This compiles the project, runs the tests, and checks for things like binary compatibility and source code formatting. When two team members have also manually reviewed and (perhaps after asking for some amendments) accepted your contribution, it should be good to be merged.

For more details about our contributing process, check out CONTRIBUTING.md - and feel free to ask!

@hithran hithran changed the title Store the gradle plugin logfile inside the build directory (#669) Store the gradle plugin logfile inside the build directory Aug 23, 2019
@raboof
Copy link
Contributor

raboof commented Aug 23, 2019

OK TO TEST

@hithran
Copy link
Contributor Author

hithran commented Aug 23, 2019

Thank you Travis for saving me from trouble with my hasty PR creation. I'll be a like a good dev and run the tests before I push changes ^^

Copy link
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Copy link
Contributor

@raboof raboof left a comment

Choose a reason for hiding this comment

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

Great simple fix for a tricky problem, thanks!

@raboof raboof merged commit 6219b82 into akka:master Aug 27, 2019
lukasito pushed a commit to lukasito/akka-grpc that referenced this pull request Jan 28, 2020
* Fixed log file issue with the gradle plugin on windows when the project directory is not in C:\

*  Fixed the printProtoLogs task, it referred to a removed property.
lukasito pushed a commit to lukasito/akka-grpc that referenced this pull request Jan 28, 2020
* Fixed log file issue with the gradle plugin on windows when the project directory is not in C:\

*  Fixed the printProtoLogs task, it referred to a removed property.
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.

5 participants