Mercurial > public > develkit
changeset 271:16c2e0ea6501
fix copyright update
author | smith@nwoca.org |
---|---|
date | Mon, 07 Jan 2019 13:50:21 +0000 |
parents | d9f3e7fe251f |
children | 1d63556430a6 |
files | ODE-copyright.xml init40.gradle profiles_settings-copyright.xml |
diffstat | 3 files changed, 22 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/ODE-copyright.xml Mon Jan 07 13:39:12 2019 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,6 +0,0 @@ -<component name="CopyrightManager"> - <copyright> - <option name="notice" value="Copyright (c) &#36;today.year. Ohio Department of Education. - All Rights Reserved. Unauthorized copying of this file, in any medium, is strictly prohibited. Written by State Software Development Team (http://ssdt.oecn.k12.oh.us/) " /> - <option name="myName" value="ODE" /> - </copyright> -</component> \ No newline at end of file
--- a/init40.gradle Mon Jan 07 13:39:12 2019 +0000 +++ b/init40.gradle Mon Jan 07 13:50:21 2019 +0000 @@ -143,11 +143,9 @@ if (gradle.bambooBuild && r.hasProperty('requireJavaVersion')) { gradle.runtimeInfo.requireJava( r.getProperty('requireJavaVersion') ) } -// if (!gradle.bambooBuild && !r.file('.idea/copyright/ODE.xml').exists() ) { -// r.file('.idea/copyright').mkdirs() -// r.file('.idea/copyright/ODE.xml').text = new File("${gradle.ssdtDevelkitLocation}/ODE-copyright.xml").text -// r.file('.idea/copyright/profiles_settings.xml').text = new File("${gradle.ssdtDevelkitLocation}/profiles_settings-copyright.xml").text -// } + if (!gradle.bambooBuild && !r.file('.idea/copyright/ODE.xml').exists() ) { + updateCopyrightProfile(r) + } } def findComponent(project, name) { @@ -598,6 +596,22 @@ } +def updateCopyrightProfile(Project r) { + r.file('.idea/copyright').mkdirs() + r.file('.idea/copyright/ODE.xml').text = +'''<component name="CopyrightManager"> + <copyright> + <option name="notice" value="Copyright (c) &#36;today.year. Ohio Department of Education. - All Rights Reserved. Unauthorized copying of this file, in any medium, is strictly prohibited. Written by the State Software Development Team (http://ssdt.oecn.k12.oh.us/) " /> + <option name="myName" value="ODE" /> + </copyright> +</component>''' + + r.file('.idea/copyright/profiles_settings.xml').text = +'''<component name="CopyrightManager"> + <settings default="ODE" /> +</component>''' + +} @ToString(includeNames=true) class RuntimeInfo { @@ -811,6 +825,8 @@ } } } - + } + +