-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
61 lines (53 loc) · 1.55 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
configurations {
epsilon
}
def debugPort = 4040
def debugEpsilon = false
repositories {
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
mavenCentral()
}
dependencies {
epsilon 'org.eclipse.epsilon:org.eclipse.epsilon.workflow:2.6.0-SNAPSHOT'
epsilon 'org.eclipse.epsilon:org.eclipse.epsilon.workflow.emf:2.6.0-SNAPSHOT'
}
task setupEpsilonTasks {
// Set up the core Epsilon tasks
ant.taskdef(resource: 'org/eclipse/epsilon/workflow/tasks/tasks.xml',
classpath: configurations.epsilon.asPath, loaderref: 'epsilon')
// Set up the Epsilon EMF tasks
ant.taskdef(resource: 'org/eclipse/epsilon/workflow/tasks/emf/tasks.xml',
classpath: configurations.epsilon.asPath, loaderref: 'epsilon')
// Set logging level to info so that EOL's println() is not suppressed
ant.lifecycleLogLevel = 'INFO'
}
task runHello {
dependsOn tasks.setupEpsilonTasks
doLast {
ant.'epsilon.eol'(src: '01-hello.eol', debug: debugEpsilon, debugPort: debugPort)
}
}
task debugHello {
finalizedBy "runHello"
doLast {
debugEpsilon = true
}
}
task runInspectObject {
dependsOn tasks.setupEpsilonTasks
doLast {
ant.'epsilon.emf.loadModel'(modelFile: 'models/person.model', metamodelFile: 'models/person.ecore', read: true, store: false, name: 'M')
ant.'epsilon.eol'(src: '04-inspectObject.eol', debug: debugEpsilon, debugPort: debugPort) {
model(ref: 'M')
}
ant.'epsilon.disposeModel'(model: 'M')
}
}
task debugInspectObject {
finalizedBy "runInspectObject"
doLast {
debugEpsilon = true
}
}