Skip to content

AppendingTransformer generates undesired empty lines that cause errors #798

Description

@jafarre-bi

Affected version

3.6.2

Bug description

I'm transforming the files META-INF/maven/org.apache.maven.api.di.Inject using the AppendingTransformer.
After each merged file, it adds an empty line. From what I see in the code, it blindly adds a line feed after appending each file's contents, so it generates an empty line for each line ending with a line feed. Unfortunately, maven-di tries to load empty entries, resulting in exceptions. This makes it unusable in my use case, and I don't have a workaround.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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