Skip to content

Commit cac5b5c

Browse files
committed
Add copyright part to package-project + fix template.json for other projects that have copyright
1 parent 61cb387 commit cac5b5c

File tree

5 files changed

+143
-0
lines changed

5 files changed

+143
-0
lines changed

working/templates/automation-project/.template_config/template.json

+23
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,29 @@
2020
"replaces": "$AUTHOR$",
2121
"description": "The author."
2222
},
23+
"CopyrightYear": {
24+
"type": "generated",
25+
"generator": "now",
26+
"replaces": "$COPYRIGHTYEAR$",
27+
"parameters": {
28+
"format": "yyyy"
29+
}
30+
},
31+
"AuthorVersionHistory": {
32+
"type": "generated",
33+
"generator": "regex",
34+
"dataType": "string",
35+
"replaces": "$AUTHORVERSIONHISTORY$",
36+
"parameters": {
37+
"source": "Author",
38+
"steps": [
39+
{
40+
"regex": "^SKYLINE2\\\\(.*?)$",
41+
"replacement": "$1"
42+
}
43+
]
44+
}
45+
},
2346
"CreateDataMinerPackage": {
2447
"type": "parameter",
2548
"datatype": "bool",

working/templates/gqi-ad-hoc-data-source-project/.template_config/template.json

+23
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,29 @@
4545
"replaces": "$AUTHOR$",
4646
"description": "The author."
4747
},
48+
"CopyrightYear": {
49+
"type": "generated",
50+
"generator": "now",
51+
"replaces": "$COPYRIGHTYEAR$",
52+
"parameters": {
53+
"format": "yyyy"
54+
}
55+
},
56+
"AuthorVersionHistory": {
57+
"type": "generated",
58+
"generator": "regex",
59+
"dataType": "string",
60+
"replaces": "$AUTHORVERSIONHISTORY$",
61+
"parameters": {
62+
"source": "Author",
63+
"steps": [
64+
{
65+
"regex": "^SKYLINE2\\\\(.*?)$",
66+
"replacement": "$1"
67+
}
68+
]
69+
}
70+
},
4871
"CreateDataMinerPackage": {
4972
"type": "parameter",
5073
"datatype": "bool",

working/templates/package-project/$SCRIPTNAME$.cs

+51
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
/*
2+
****************************************************************************
3+
* Copyright (c) $COPYRIGHTYEAR$, Skyline Communications NV All Rights Reserved. *
4+
****************************************************************************
5+
6+
By using this script, you expressly agree with the usage terms and
7+
conditions set out below.
8+
This script and all related materials are protected by copyrights and
9+
other intellectual property rights that exclusively belong
10+
to Skyline Communications.
11+
12+
A user license granted for this script is strictly for personal use only.
13+
This script may not be used in any way by anyone without the prior
14+
written consent of Skyline Communications. Any sublicensing of this
15+
script is forbidden.
16+
17+
Any modifications to this script by the user are only allowed for
18+
personal use and within the intended purpose of the script,
19+
and will remain the sole responsibility of the user.
20+
Skyline Communications will not be responsible for any damages or
21+
malfunctions whatsoever of the script resulting from a modification
22+
or adaptation by the user.
23+
24+
The content of this script is confidential information.
25+
The user hereby agrees to keep this confidential information strictly
26+
secret and confidential and not to disclose or reveal it, in whole
27+
or in part, directly or indirectly to any person, entity, organization
28+
or administration without the prior written consent of
29+
Skyline Communications.
30+
31+
Any inquiries can be addressed to:
32+
33+
Skyline Communications NV
34+
Ambachtenstraat 33
35+
B-8870 Izegem
36+
Belgium
37+
Tel. : +32 51 31 35 69
38+
Fax. : +32 51 31 01 29
39+
E-mail : info@skyline.be
40+
Web : www.skyline.be
41+
Contact : Ben Vandenberghe
42+
43+
****************************************************************************
44+
Revision History:
45+
46+
DATE VERSION AUTHOR COMMENTS
47+
48+
$INITIALVERSIONDATE$ 1.0.0.1 $AUTHORVERSIONHISTORY$, Skyline Initial version
49+
****************************************************************************
50+
*/
51+
152
using System;
253

354
using Skyline.AppInstaller;

working/templates/package-project/.template_config/template.json

+23
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,29 @@
2020
"replaces": "$AUTHOR$",
2121
"description": "The author."
2222
},
23+
"CopyrightYear": {
24+
"type": "generated",
25+
"generator": "now",
26+
"replaces": "$COPYRIGHTYEAR$",
27+
"parameters": {
28+
"format": "yyyy"
29+
}
30+
},
31+
"AuthorVersionHistory": {
32+
"type": "generated",
33+
"generator": "regex",
34+
"dataType": "string",
35+
"replaces": "$AUTHORVERSIONHISTORY$",
36+
"parameters": {
37+
"source": "Author",
38+
"steps": [
39+
{
40+
"regex": "^SKYLINE2\\\\(.*?)$",
41+
"replacement": "$1"
42+
}
43+
]
44+
}
45+
},
2346
"CreateDataMinerPackage": {
2447
"type": "parameter",
2548
"datatype": "bool",

working/templates/user-defined-api-project/.template_config/template.json

+23
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,29 @@
2020
"replaces": "$AUTHOR$",
2121
"description": "The author."
2222
},
23+
"CopyrightYear": {
24+
"type": "generated",
25+
"generator": "now",
26+
"replaces": "$COPYRIGHTYEAR$",
27+
"parameters": {
28+
"format": "yyyy"
29+
}
30+
},
31+
"AuthorVersionHistory": {
32+
"type": "generated",
33+
"generator": "regex",
34+
"dataType": "string",
35+
"replaces": "$AUTHORVERSIONHISTORY$",
36+
"parameters": {
37+
"source": "Author",
38+
"steps": [
39+
{
40+
"regex": "^SKYLINE2\\\\(.*?)$",
41+
"replacement": "$1"
42+
}
43+
]
44+
}
45+
},
2346
"CreateDataMinerPackage": {
2447
"type": "parameter",
2548
"datatype": "bool",

0 commit comments

Comments
 (0)