-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.teamcity.gradle
81 lines (58 loc) · 2.1 KB
/
build.teamcity.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
73
74
75
76
77
78
79
80
81
def TCPathVar = "path.variable.teamcitydistribution"
def TCPathVarServer = "teamcity.path.variable.teamcitydistribution"
def teamCityDir = '';
[TCPathVar, TCPathVarServer].each {
if (project.hasProperty(it)) {
teamCityDir = project.getProperties()[it];
}
}
def tmp = System.getProperty(TCPathVarServer);
if (tmp != null) {
teamCityDir = tmp;
}
tmp = System.getenv(TCPathVarServer);
if (tmp != null) {
teamCityDir = tmp;
}
if (!new File(teamCityDir).isDirectory()) {
throw new StopExecutionException("Failed to find TeamCity home at ${teamCityDir}");
}
teamCityLib = fileTree(teamCityDir + "/webapps/ROOT/WEB-INF/lib").matching {
include 'annotations.jar'
include 'openapi.jar'
include 'util.jar'
include 'jdom.jar'
}
annotationsJar = fileTree(teamCityDir + "/webapps/ROOT/WEB-INF/lib").matching {
include 'annotations.jar'
}
log4j = fileTree(teamCityDir + "/webapps/ROOT/WEB-INF/lib").matching {
include 'log4j*.jar'
}
agentApi = fileTree(teamCityDir + "/devPackage").matching {
include 'agent-api.jar'
}
agentInternalApi = fileTree(teamCityDir + "/buildAgent/lib").matching {
include 'agent.jar'
}
serverApi = fileTree(teamCityDir + "/devPackage").matching {
include 'server-api.jar'
}
serverInternal = fileTree(teamCityDir + "/webapps/ROOT/WEB-INF/lib").matching {
include 'server.jar'
}
commonApi = fileTree(teamCityDir + "/devPackage").matching {
include 'common-api.jar'
}
commonImpl = fileTree(teamCityDir + "/webapps/ROOT/WEB-INF/lib").matching {
include 'common-impl.jar'
}
serverLibs = fileTree(teamCityDir + "/webapps/ROOT/WEB-INF/lib").matching {
include 'spring*.jar'
include 'commons-logging*.jar'
} + fileTree(teamCityDir + "/lib").matching {
include 'servlet*.jar'
}
testNG = fileTree("lib/testng").matching { include '*.jar' }
jmock = fileTree("lib/jmock").matching { include '*.jar' }
jmock_old = fileTree('lib/jmock-1.2').matching { include '*.jar' }