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

[Kword] Generated dir error #226

Merged
merged 1 commit into from
Sep 27, 2024
Merged

[Kword] Generated dir error #226

merged 1 commit into from
Sep 27, 2024

Conversation

npresseault
Copy link
Member

@npresseault npresseault commented Sep 27, 2024

Description

Fix issue with kword directory which should have been marked as output directory instead of input.

Motivation and Context

Fixes this error when the directory does not exist

> Task :app:shared:kwordGenerateEnum FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:shared:kwordGenerateEnum' (type 'KWordEnumGenerate').
  - In plugin 'mirego.kword' type 'com.mirego.kword.KWordEnumGenerate' property 'generatedDir' specifies directory 'generated' which doesn't exist.
    
    Reason: An input file was expected to be present but it doesn't exist.
    
    Possible solutions:
      1. Make sure the directory exists before the task is called.
      2. Make sure that the task which produces the directory is declared as an input.
    
    For more information, please refer to https://docs.gradle.org/8.8/userguide/validation_problems.html#input_file_does_not_exist in the Gradle documentation.

How Has This Been Tested?

Tested in sample, by removing the directory manually.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@npresseault npresseault merged commit dc49b4c into master Sep 27, 2024
1 check passed
@npresseault npresseault deleted the fix-kword-generated-dir branch September 27, 2024 14:37
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.

3 participants