-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
73 lines (49 loc) · 1.56 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
62
63
64
65
66
67
68
69
70
71
72
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
*/
import oe.espresso.latte.*
plugins {
id "oe.espresso.latte" version "0.2.6"
id "base"
}
apply plugin: 'oe.espresso.latte'
abl { dlcHome = new File (System.getenv('DLC'))}
task compileTest(type: CompileAblTask) {
destinationDir = file("${buildDir}/tests")
source('src/test/abl')
propath = files('src/test/abl')
include('**/*.cls')
include('**/*.p')
}
task compileCode(type: CompileAblTask) {
destinationDir = file("${buildDir}/rcode")
source('src/main/abl')
propath = files('src/main/abl')
include('**/*.cls')
include('**/*.p')
include('**/*.w')
}
task packageCode(type: CreateProcedureLibrary){
dependsOn compileCode
destFile = "${buildDir}/dist/${project.name}-${CLASSIFIER.toUpperCase()}-${VERSION}.pl"
baseDir = "${buildDir}/rcode"
includes= "**/*.r"
excludes= "**/.pct"
}
task packageSRC(type: CreateProcedureLibrary){
destFile = "${buildDir}/dist/${project.name}-SRC-${CLASSIFIER.toUpperCase()}-${VERSION}.pl"
baseDir = "src/main/abl"
}
task ablTest(type: AblUnit) {
dependsOn packageCode
source("src/test/abl")
include("**/*.cls")
destinationDir = "${buildDir}/tests"
writeLog = true
baseDir = "${buildDir}"
propath = files("src/test/abl" , "${buildDir}/dist/${project.name}-${CLASSIFIER.toUpperCase()}-${VERSION}.pl")
}
defaultTasks 'packageSRC', 'ablTest'