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

generate*ScenarioSource tasks fail if the src/*/scenarios directory does not exist #10

Open
Clashsoft opened this issue Aug 7, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Clashsoft
Copy link
Member

Clashsoft commented Aug 7, 2020

  • The generateScenarioSource task fails if src/gen/java exists and src/main/scenarios does not exist.
  • The generateTestScenarioSource task fails if src/testGen/java exists and src/test/scenarios does not exist.

Output

> Task :generateScenarioSource FAILED
FAILURE: Build failed with an exception.
* What went wrong:
A problem was found with the configuration of task ':generateScenarioSource' (type 'ScenariosTask').
> Directory '.../src/main/scenarios' specified for property 'inputDirectory' does not exist.

Workaround

Creating the missing directories manually resolves the error. They can be left empty, but it is recommended to put an empty .gitkeep file inside so CI systems and other developers don't run into the same problem.

@Clashsoft Clashsoft added the bug Something isn't working label Aug 7, 2020
@Clashsoft Clashsoft self-assigned this Aug 7, 2020
@Clashsoft
Copy link
Member Author

See gradle/gradle#2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant