kieker-monitoring / kieker

Kieker's main repository
Apache License 2.0
70 stars 41 forks source link

[KIEKER-1731] Change copyright year in headers to 2018 #2108

Open rju opened 2 weeks ago

rju commented 2 weeks ago

JIRA Issue: KIEKER-1731 Change copyright year in headers to 2018 Original Reporter: Andre van Hoorn


rju commented 2 weeks ago

author André van Hoorn -- Wed, 2 May 2018 17:28:13 +0200

Before:

avhAndrè van Hoorn-ThinkPad-T450s:~/git_work/kieker$ grep -ER "Copyright 201[^8] Kieker" * | wc -l
966
avhAndrè van Hoorn-ThinkPad-T450s:~/git_work/kieker$ grep -hERo "Copyright 201[^8] Kieker" * | sort | uniq -c
     30 Copyright 2015 Kieker
    936 Copyright 2017 Kieker

Script:

mkdir /tmp/out/
for DIR in kieker-analysis kieker-common kieker-documentation kieker-examples kieker-monitoring kieker-tools kieker-checkstyle-extension kieker-extension-kafka; do
    for f in `find ${DIR}/ -name "*.java"` `find ${DIR}/ -name "*.irl"`; do 
        curFn=$f
        basenameF=$(basename $f | sed s/.java//g)
#    if grep "CPUMemUsageServletContextListener" ${curFn}; then 
        cat $f | sed -E s/"Copyright 201[^8] Kieker Project"/"Copyright 2018 Kieker Project"/g > /tmp/out/${basenameF}   
        cp /tmp/out/${basenameF} ${curFn}
#    fi
    done
done

Remaining:

avhAndrè van Hoorn-ThinkPad-T450s:~/git_work/kieker$ grep -ER "Copyright 201[^8] Kieker" * 
build.gradle:        regexpReplaceInFiles(file, 'Copyright 20\\d\\d Kieker Project', 'Copyright 2017 Kieker Project')
config/cs-conf.xml:         value="/***************************************************************************\n * Copyright 2017 Kieker Project (http://kieker-monitoring.net)\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ***************************************************************************/\n" />
config/eclipse-cs-conf.xml:        <property name="header"         value="/***************************************************************************\n * Copyright 2017 Kieker Project (http://kieker-monitoring.net)\n *\n * Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n ***************************************************************************/\n"/>

Changed manually.