Mercurial > hg > thermostat
changeset 2583:3087e467b539
Add C and sh configuration to mvn license plugin
Reviewed-by: omajid, neugens
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-January/022009.html
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-February/022138.html
author | Andrew Azores <aazores@redhat.com> |
---|---|
date | Wed, 08 Feb 2017 13:46:22 -0500 |
parents | 4283ab91985b |
children | 242d8ff833b8 |
files | pom.xml src/license/thermostat-c.xml |
diffstat | 2 files changed, 57 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/pom.xml Wed Feb 08 11:36:11 2017 +0100 +++ b/pom.xml Wed Feb 08 13:46:22 2017 -0500 @@ -579,11 +579,14 @@ <headerDefinitions> <headerDefinition>src/license/thermostat-java.xml</headerDefinition> <headerDefinition>src/license/thermostat-xml.xml</headerDefinition> + <headerDefinition>src/license/thermostat-c.xml</headerDefinition> </headerDefinitions> <aggregate>true</aggregate> <mapping> <java>THERMOSTAT_JAVA_STYLE</java> <xml>THERMOSTAT_XML_STYLE</xml> + <c>THERMOSTAT_C_STYLE</c> + <sh>SCRIPT_STYLE</sh> </mapping> <header>src/license/header.txt</header> <properties> @@ -592,6 +595,8 @@ <includes> <include>**/*.java</include> <include>**/*.xml</include> + <include>**/*.c</include> + <include>**/*.sh</include> </includes> <excludes> <exclude>**/src/test/resources/**</exclude>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/license/thermostat-c.xml Wed Feb 08 13:46:22 2017 -0500 @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + + Copyright 2012-2017 Red Hat, Inc. + + This file is part of Thermostat. + + Thermostat is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published + by the Free Software Foundation; either version 2, or (at your + option) any later version. + + Thermostat is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Thermostat; see the file COPYING. If not see + <http://www.gnu.org/licenses/>. + + Linking this code with other modules is making a combined work + based on this code. Thus, the terms and conditions of the GNU + General Public License cover the whole combination. + + As a special exception, the copyright holders of this code give + you permission to link this code with independent modules to + produce an executable, regardless of the license terms of these + independent modules, and to copy and distribute the resulting + executable under terms of your choice, provided that you also + meet, for each linked independent module, the terms and conditions + of the license of that module. An independent module is a module + which is not derived from or based on this code. If you modify + this code, you may extend this exception to your version of the + library, but you are not obligated to do so. If you do not wish + to do so, delete this exception statement from your version. + +--> +<additionalHeaders> + <thermostat_c_style> + <firstLine>/*</firstLine> + <beforeEachLine> * </beforeEachLine> + <endLine> */EOL</endLine> + <afterEachLine>EOL</afterEachLine> + <!--skipLine></skipLine--> + <firstLineDetectionPattern>(\s|\t)*/\*.*$</firstLineDetectionPattern> + <lastLineDetectionPattern>.*\*/(\s|\t)*$</lastLineDetectionPattern> + <allowBlankLines>false</allowBlankLines> + <isMultiline>true</isMultiline> + <padLines>false</padLines> + </thermostat_c_style> +</additionalHeaders>