Mercurial > hg > thermostat-ng > web-gateway
changeset 146:7e1c6071024c
Fix for case-insensitve filesystems
The LICENSE fiel conficts with the license directory on Windows and macOS.
This patch moves all the license check files to buildfiles/license-check.
author | Simon Tooke <stooke@redhat.com> |
---|---|
date | Wed, 10 May 2017 11:43:27 -0400 |
parents | 3eca89ccecb1 |
children | 925274a4ba55 |
files | buildfiles/license-check/header.txt buildfiles/license-check/thermostat-java.xml buildfiles/license-check/thermostat-xml.xml license/header.txt license/thermostat-java.xml license/thermostat-xml.xml pom.xml |
diffstat | 7 files changed, 140 insertions(+), 143 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buildfiles/license-check/header.txt Wed May 10 11:43:27 2017 -0400 @@ -0,0 +1,33 @@ +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.
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buildfiles/license-check/thermostat-java.xml Wed May 10 11:43:27 2017 -0400 @@ -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_java_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_java_style> +</additionalHeaders>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/buildfiles/license-check/thermostat-xml.xml Wed May 10 11:43:27 2017 -0400 @@ -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_xml_style> + <firstLine><![CDATA[<!--EOL]]></firstLine> + <beforeEachLine> </beforeEachLine> + <endLine><![CDATA[EOL-->]]></endLine> + <!--afterEachLine></afterEachLine--> + <skipLine><![CDATA[^<\?xml.*>$]]></skipLine> + <firstLineDetectionPattern><![CDATA[(\s|\t)*<!--.*$]]></firstLineDetectionPattern> + <lastLineDetectionPattern><![CDATA[.*-->(\s|\t)*$]]></lastLineDetectionPattern> + <allowBlankLines>false</allowBlankLines> + <isMultiline>true</isMultiline> + <padLines>false</padLines> + </thermostat_xml_style> +</additionalHeaders>
--- a/license/header.txt Wed May 10 13:29:20 2017 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,33 +0,0 @@ -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.
--- a/license/thermostat-java.xml Wed May 10 13:29:20 2017 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -<?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_java_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_java_style> -</additionalHeaders>
--- a/license/thermostat-xml.xml Wed May 10 13:29:20 2017 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,52 +0,0 @@ -<?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_xml_style> - <firstLine><![CDATA[<!--EOL]]></firstLine> - <beforeEachLine> </beforeEachLine> - <endLine><![CDATA[EOL-->]]></endLine> - <!--afterEachLine></afterEachLine--> - <skipLine><![CDATA[^<\?xml.*>$]]></skipLine> - <firstLineDetectionPattern><![CDATA[(\s|\t)*<!--.*$]]></firstLineDetectionPattern> - <lastLineDetectionPattern><![CDATA[.*-->(\s|\t)*$]]></lastLineDetectionPattern> - <allowBlankLines>false</allowBlankLines> - <isMultiline>true</isMultiline> - <padLines>false</padLines> - </thermostat_xml_style> -</additionalHeaders>
--- a/pom.xml Wed May 10 13:29:20 2017 -0400 +++ b/pom.xml Wed May 10 11:43:27 2017 -0400 @@ -51,16 +51,13 @@ <modules> <module>server</module> <module>distribution</module> - <module>common</module> - <module>services</module> </modules> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.7</java.version> - <jersey.version>2.25</jersey.version> <jetty.version>9.2.19.v20160908</jetty.version> <mongo-java-driver.version>3.2.1</mongo-java-driver.version> @@ -111,8 +108,8 @@ <configuration> <skip>${license.skip}</skip> <headerDefinitions> - <headerDefinition>license/thermostat-java.xml</headerDefinition> - <headerDefinition>license/thermostat-xml.xml</headerDefinition> + <headerDefinition>buildfiles/license-check/thermostat-java.xml</headerDefinition> + <headerDefinition>buildfiles/license-check/thermostat-xml.xml</headerDefinition> </headerDefinitions> <aggregate>true</aggregate> <mapping> @@ -120,7 +117,7 @@ <xml>THERMOSTAT_XML_STYLE</xml> <sh>SCRIPT_STYLE</sh> </mapping> - <header>license/header.txt</header> + <header>buildfiles/license-check/header.txt</header> <properties> <inceptionYear>${project.inceptionYear}</inceptionYear> </properties>