-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
localization.gradle
58 lines (51 loc) · 1.6 KB
/
localization.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
repositories {
jcenter()
}
configurations {
jython
}
dependencies {
jython 'org.python:jython-standalone:2.7.1'
}
task localizationStatusWithMarkdown(type: JavaExec) {
description "Creates an update file in Markdown"
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "markdown"
}
task localizationStatus(type: JavaExec) {
description "Prints the current status"
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "status"
}
task localizationStatusExtended(type: JavaExec) {
description "Prints the current status (extended output)"
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "status"
args "--extended"
}
task localizationUpdate(type: JavaExec) {
description "Updates the localization files (fixes duplicates, adds missing keys, and sort them"
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "update"
}
task localizationUpdateExtended(type: JavaExec) {
description "Updates the localization files (fixes duplicates, adds missing keys, and sort them (extended output)"
group = 'Localization'
main 'org.python.util.jython'
classpath project.configurations.jython.asPath
args file("scripts/syncLang.py")
args "update"
args "--extended"
}