-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.gradle
46 lines (39 loc) · 959 Bytes
/
build.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
apply plugin: 'groovy'
apply plugin: 'application'
repositories {
mavenCentral()
}
mainClassName = 'generator.AppGenerator'
dependencies {
compile localGroovy()
compile group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
compile group: 'org.apache.ant', name: 'ant', version: '1.9.7'
}
run {
args += ["--template-directory", "src/dist/template"]
def projectProperties = gradle.startParameter.projectProperties
def availableCommandLineArguments = [
"name",
"output-directory",
"classes",
"seed",
"subprojects",
"config-class",
"help",
"method-per-class",
"log-info-per-method",
"log-warn-per-method",
"log-error-per-method",
"bridge-switch-size",
"switcher-max-routes",
"methods-per-class",
"entry-points",
"io-cpu-intensive-matrix-size",
"skip-logic-code"
]
availableCommandLineArguments.each {
if (projectProperties.containsKey(it)) {
args += ["--$it", projectProperties[it]]
}
}
}