mathieucarbou / license-maven-plugin

Manage license headers in your source files

Home Page:https://oss.carbou.me/license-maven-plugin/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to Configure XML_PER_LINE Without First and End Lines

emmberk opened this issue · comments

I'd like an xml header that looks like

<?xml version="1.0" encoding="UTF-8"?>
<!-- header -->
<...

but the default XML_PER_LINE style puts a blank line before and after the header line

<?xml version="1.0" encoding="UTF-8"?>

<!-- header -->

<...

There doesn't appear to be a way to define a custom headerDefinition that doesn't include those extra lines because firstLine and endLine are required.

Hi @emmberk : the plugin allows to change the definition of a style. You could redefine XML_PER_LINE to just remove the EOL in the definition. From the quick test I did by removing them in the code, it works