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

Keep license structure #440

Merged
merged 2 commits into from
May 2, 2024
Merged

Keep license structure #440

merged 2 commits into from
May 2, 2024

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Apr 30, 2024

What happens is that license is handled as string, that later deep below (in XmlWriterUtil, from plexus-utils) is stripped by Line Separators (hence paragraph lines are gone) and spit into string.

Instead, make this a list of strings, and just write them out line by line, as XML comment structure allows it.

Also change config from Properties to Map<String, Object> and now it is possible to configure List for license.

What happens is that license is handled as string, that later
deep below (in XmlWriterUtil, from plexus-utils) is stripped
by Line Separators (hence paragraph lines are out) and spit
into string.

Instead, make this a list of strings, and just write them
out line by line, as XML comment structure allows it.

Not ideal, as Properties allows only strings. Unsure
why internal parameters are Properties and not Map<String, Object>
for example...
@cstamas cstamas self-assigned this Apr 30, 2024
@cstamas cstamas marked this pull request as ready for review April 30, 2024 15:43
Make it Map<String, Object> so not only strings
can be passed to modello.
@cstamas cstamas changed the title Just an attempt to keep structure Keep license structure May 2, 2024
@cstamas cstamas merged commit 18d2f87 into master May 2, 2024
20 checks passed
@cstamas cstamas deleted the keep-license-structure branch May 2, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants