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

[Gradle] Set working directory before fetching for gradle wrapper script #4506

Merged
merged 1 commit into from
Jun 16, 2017

Conversation

benabbon
Copy link

@benabbon benabbon commented Jun 9, 2017

No description provided.

@msftclas
Copy link

msftclas commented Jun 9, 2017

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@bryanmacfarlane
Copy link
Contributor

@jeffyoung - can you review?

// Configure wrapperScript
let wrapperScript: string = tl.getPathInput('wrapperScript', true, true);
wrapperScript = configureWrapperScript(wrapperScript);

// Set working directory
let workingDirectory: string = tl.getPathInput('cwd', false, true);
if (!workingDirectory) {
workingDirectory = path.dirname(wrapperScript);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Here in the if (!workingDirectory) block, we still need tl.cd(workingDirectory) after workingDirectory = path.dirname(wrapperScript);

Copy link
Author

Choose a reason for hiding this comment

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

just added it

@davidstaheli davidstaheli merged commit 52c8b13 into microsoft:master Jun 16, 2017
@davidstaheli
Copy link
Contributor

Thanks very much for the contribution, @benabbon!

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