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

Improvement: prevent incomplete module.properties when using some custom props #56

Open
RVanhuysseXenit opened this issue Mar 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@RVanhuysseXenit
Copy link
Contributor

RVanhuysseXenit commented Mar 10, 2021

Env

gradlew 6.8.3
eu.xenit.amp 1.0.1

Problem

When using custom values for some mandatory module properties in sourceSet.main.amp.module, the default values of unset properties are discarded, resulting in an incomplete module.properties file. This problem only becomes visible when trying to install the amp on an alfresco system, with the given exception 'file is not a valid amp'

Possible solutions

  • merge the default and custom properties before writing to file
  • display warning when customizing module.properties but not all mandatory properties are set.

Personally i am more in favor of the 2nd solution, as it forces developers to evaluate all mandatory values (possibly preventing bad/malformed artifacts), but either would be good.

@vierbergenlars vierbergenlars added the enhancement New feature or request label Mar 10, 2021
@vierbergenlars
Copy link
Member

@RVanhuysseXenit With "display warning", you mean throw an exception and fail the build?

@RVanhuysseXenit
Copy link
Contributor Author

@RVanhuysseXenit With "display warning", you mean throw an exception and fail the build?

Yes that seems appropriate, since resulting artifacts do not work as they are build with the incomplete config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants