Jian Li
Committed by Gerrit Code Review

[ONOS-3739] Substitute copyright year during archetype gen

With this commit, we can substitute the copyright year during
archetype generation phase, so that we do not need to manually
input the copyright year.

Change-Id: I3c0e4cdc69a3fad7a90335332d5489604107b892
Showing 24 changed files with 60 additions and 25 deletions
<?xml version="1.0" encoding="UTF-8"?>
#set( $dummy = "" )
#set( $date = $dummy.getClass().forName("java.util.Date").newInstance() )
#set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() )
#set( $pattern = $format.applyPattern("yyyy") )
#set( $year = $format.format($date) )
?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
#set( $dummy = "" )
#set( $date = $dummy.getClass().forName("java.util.Date").newInstance() )
#set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() )
#set( $pattern = $format.applyPattern("yyyy") )
#set( $year = $format.format($date) )
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
#set( $dummy = "" )
#set( $date = $dummy.getClass().forName("java.util.Date").newInstance() )
#set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() )
#set( $pattern = $format.applyPattern("yyyy") )
#set( $year = $format.format($date) )
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
<!--
~ Copyright 2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
#set( $dummy = "" )
#set( $date = $dummy.getClass().forName("java.util.Date").newInstance() )
#set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() )
#set( $pattern = $format.applyPattern("yyyy") )
#set( $year = $format.format($date) )
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2014-2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2014-2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2014-2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2014-2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
#set( $dummy = "" )
#set( $date = $dummy.getClass().forName("java.util.Date").newInstance() )
#set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() )
#set( $pattern = $format.applyPattern("yyyy") )
#set( $year = $format.format($date) )
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
#set( $dummy = "" )
#set( $date = $dummy.getClass().forName("java.util.Date").newInstance() )
#set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() )
#set( $pattern = $format.applyPattern("yyyy") )
#set( $year = $format.format($date) )
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
#set( $dummy = "" )
#set( $date = $dummy.getClass().forName("java.util.Date").newInstance() )
#set( $format = $dummy.getClass().forName("java.text.SimpleDateFormat").newInstance() )
#set( $pattern = $format.applyPattern("yyyy") )
#set( $year = $format.format($date) )
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2016 Open Networking Laboratory
~ Copyright ${year} Open Networking Laboratory
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2014-2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......
......@@ -2,7 +2,7 @@
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* Copyright 2016 Open Networking Laboratory
* Copyright ${year} Open Networking Laboratory
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......