Split {copyright} into {copyright-year} and {copyright} 41/26941/5
authorFlavio Fernandes <ffernand@redhat.com>
Mon, 14 Sep 2015 21:53:17 +0000 (17:53 -0400)
committerFlavio Fernandes <ffernand@redhat.com>
Thu, 17 Sep 2015 20:05:12 +0000 (16:05 -0400)
With this change, archetype will explicitly use year for copyright to
ensure check style does not fail.

Patch set 3: replace (c) with © symbol
Patch set 4: add default values for copyright-year and version

Ref: https://git.opendaylight.org/gerrit/#/c/25860/
Change-Id: I5b4bdfc273d578afafd7555a96e5a1fe732677bb
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
19 files changed:
opendaylight/archetypes/opendaylight-configfile-archetype/src/main/resources/archetype-resources/pom.xml
opendaylight/archetypes/opendaylight-configfile-archetype/src/main/resources/archetype-resources/src/main/resources/80-__repoName__.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/META-INF/maven/archetype-metadata.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/api/pom.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/artifacts/pom.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/features/pom.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/features/src/main/features/features.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/pom.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/src/main/config/default-config.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/src/main/java/__packageInPathFormat__/impl/__classPrefix__Provider.java
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/__artifactId__/impl/rev141210/__classPrefix__Module.java
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/src/main/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/__artifactId__/impl/rev141210/__classPrefix__ModuleFactory.java
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/src/test/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/__artifactId__/impl/rev141210/__classPrefix__ModuleFactoryTest.java
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/src/test/java/org/opendaylight/yang/gen/v1/urn/opendaylight/params/xml/ns/yang/__artifactId__/impl/rev141210/__classPrefix__ModuleTest.java
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/it/pom.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/it/src/test/java/__packageInPathFormat__/it/__classPrefix__IT.java
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/karaf/pom.xml
opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/pom.xml
opendaylight/archetypes/opendaylight-startup/src/test/resources/projects/basic/archetype.properties

index 3c778e262b66ec985a1b67b4ec78a4e542f71d03..2b4ec33cd7b0c356ac614352df4b6eda1e64e5b5 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
- Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+ Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 
  This program and the accompanying materials are made available under the
  terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 432b9473511d3b1acae9f87695d3ce2d4152a3b6..73913c8ea9f83cf3b03a282d6214c97b443210b6 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
- Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
+ Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 
  This program and the accompanying materials are made available under the
  terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 7ad629bf83e3f5aa8c71a6fbb080f1c0a66d28bd..3bbd77263935f4e9c97d8701f3f8ac9ba570a54f 100644 (file)
@@ -9,6 +9,16 @@
         </defaultValue>
     </requiredProperty>
     <requiredProperty key="copyright" />
+    <requiredProperty key="copyrightYear">
+        <defaultValue>
+            2015
+        </defaultValue>
+    </requiredProperty>
+    <requiredProperty key="version">
+        <defaultValue>
+            1.0.0-SNAPSHOT
+        </defaultValue>
+    </requiredProperty>
   </requiredProperties>
   <fileSets>
 
index 8241dd97f183582dc94e1bc86f786740bea3411b..82ed223a55aee28076299d918cb7c86c17f01240 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-${copyright} and others.  All rights reserved.
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 2d634d0c58d0b46278174581e8f8dc57533ff888..8ff06e42780616bfa160885d9e022c9afff0fedf 100644 (file)
@@ -3,7 +3,7 @@
 #set( $symbol_escape = '\' )
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-${copyright} and others.  All rights reserved.
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 60a91383c44d3afed94753c0092087cb8b0d3213..9c4d453a1c8c9cebe7109a65e52d9f2a4468fd99 100644 (file)
@@ -3,7 +3,8 @@
 #set( $symbol_escape = '\' )
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-${copyright} and others. All rights reserved.
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
+
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
index 3d09797942dfc832e251898dc92ac556d41b76d9..6ded59854ee38a17f6390623c6c2cf8eeb33283b 100644 (file)
@@ -4,7 +4,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- vi: set et smarttab sw=4 tabstop=4: -->
 <!--
-${copyright}
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 471bc788b8c604af9f584c2856543d91bf2ecdef..3b9da905607c0091f13ac95ee4b5654ba5ee8d42 100644 (file)
@@ -2,8 +2,9 @@
 #set( $symbol_dollar = '$' )
 #set( $symbol_escape = '\' )
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: --><!--
-Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
+<!-- vi: set et smarttab sw=4 tabstop=4: -->
+<!--
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 2e73bde7170fd57f80e4b69d84c104b92ca6314a..7f9dc7fa1a2b78c1426366bdbfbde3c0a6fe4690 100644 (file)
@@ -4,7 +4,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- vi: set et smarttab sw=4 tabstop=4: -->
 <!--
-${copyright} and others.  All rights reserved.
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
index b913f58ed44d77ca6d7ed4434273d81f145e9e03..c2c8f0d37b0e1a3651f5f377eab6250e8b14c752 100644 (file)
@@ -2,7 +2,7 @@
 #set( $symbol_dollar = '$' )
 #set( $symbol_escape = '\' )
 /*
- * ${copyright} and others.  All rights reserved.
+ * Copyright © ${copyrightYear} ${copyright} and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 9f8991f3ec6ae97387903207672042e30a08186e..40cfc63a234e7f6f9739eb1f176902daf9184594 100644 (file)
@@ -3,7 +3,7 @@
 #set( $symbol_escape = '\' )
 #set( $factory = "${classPrefix}ModuleFactory" )
 /*
- * ${copyright} and others.  All rights reserved.
+ * Copyright © ${copyrightYear} ${copyright} and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index b60b82638ffc86cd9890145d32ee5891006e20b6..54e51cc99f51a101aab2ff91d22d268a5bb2033e 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-${copyright} and others.  All rights reserved.
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
@@ -38,4 +38,4 @@ and is available at http://www.eclipse.org/legal/epl-v10.html
     </dependency>
   </dependencies>
 
-</project>
\ No newline at end of file
+</project>
index eda5e733acb70a0a060e6808d008b40ee67a1d0e..28314e5e459a1b07f7cbf3ee03b48b75d8a88aea 100644 (file)
@@ -2,7 +2,7 @@
 #set( $symbol_dollar = '$' )
 #set( $symbol_escape = '\' )
 /*
- * ${copyright} and others.  All rights reserved.
+ * Copyright © ${copyrightYear} ${copyright} and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
index 7cf4270b7e79fbcd2f60aa5b15229ea2f924be84..f31709e9949f939a38661dc409daa42755b1c1d7 100644 (file)
@@ -3,7 +3,7 @@
 #set( $symbol_escape = '\' )
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-${copyright} and others. All rights reserved.
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
index 1d8a63b50b28a81ef5535b42eebefa3823a2cbb2..49c08a4c5bbe57802455904f9fa28729536b58c6 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!--
-${copyright} and others. All rights reserved.
+Copyright © ${copyrightYear} ${copyright} and others. All rights reserved.
 This program and the accompanying materials are made available under the
 terms of the Eclipse Public License v1.0 which accompanies this distribution,
 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
index a7d692b1eb233235cb193f18f29c9eaec2adefd7..828f1a57e9cd9c03e2fcaccbd29a84f5e8b03391 100644 (file)
@@ -1,7 +1,8 @@
 #Mon Jan 12 13:10:37 CST 2015
 package=it.pkg
-version=0.1-SNAPSHOT
+version=0.0.1-SNAPSHOT
 groupId=archetype.it
 artifactId=basic
 classPrefix=Basic
-copyright=Copyright (c) 2013 Cisco Systems, Inc.
+copyright=Cisco Systems, Inc.
+copyrightYear=2015
\ No newline at end of file