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

fix: use relative path in gradle codegen task #980

Merged
merged 1 commit into from
Mar 6, 2020

Conversation

AllanZhengYP
Copy link
Contributor

Fixes a bug in #976. It breaks the script calling Gradle task directly:

./gradlew clean build

This will result in empty directory because the default model path is aws-models but in reality should be sdk-codegen/aws-models. This is because Gradle defaults to use relative path from where gradlew is called.

So this change fix the relative path root from gradlew location to project root(codegen/sdk-codegen). Moreover, I changed the JS script to process the supplied path to make it relative path from the project root(codegen/sdk-codegen).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@AllanZhengYP AllanZhengYP requested a review from trivikr March 5, 2020 21:13
@aws-sdk-js-automation
Copy link

AWS CodeBuild CI Report

  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@AllanZhengYP AllanZhengYP merged commit ef017ef into aws:smithy-codegen Mar 6, 2020
@lock
Copy link

lock bot commented Mar 17, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants