Skip to content

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

@Clashsoft

Description

@Clashsoft
  • 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions