-
Notifications
You must be signed in to change notification settings - Fork 1
/
clearcase-standalone.xml
182 lines (144 loc) · 7.13 KB
/
clearcase-standalone.xml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2000-2009 JetBrains s.r.o.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project name="clearcase-standalone" default="all">
<property file="clearcase-standalone.properties"/>
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="128m"/>
<patternset id="ignored.files">
<exclude name="**/CVS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/RCS/**"/>
<exclude name="**/rcs/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/.sbas/**"/>
<exclude name="**/.IJI.*/**"/>
<exclude name="**/vssver.scc/**"/>
<exclude name="**/vssver2.scc/**"/>
<exclude name="**/.pyc/**"/>
<exclude name="**/.pyo/**"/>
<exclude name="**/*.pyc/**"/>
<exclude name="**/*.pyo/**"/>
<exclude name="**/.git/**"/>
</patternset>
<patternset id="compiler.resources">
<include name="**/?*.properties"/>
<include name="**/?*.xml"/>
<include name="**/?*.gif"/>
<include name="**/?*.png"/>
<include name="**/?*.jpeg"/>
<include name="**/?*.jpg"/>
<include name="**/?*.html"/>
<include name="**/?*.dtd"/>
<include name="**/?*.tld"/>
<include name="**/?*.js"/>
<include name="**/?*.css"/>
<include name="**/?*.jsp"/>
<include name="**/?*.exe"/>
<include name="**/?*.pdb"/>
<include name="**/?*.dll"/>
<include name="**/?*.ftl"/>
<include name="**/?*.xsd"/>
</patternset>
<!-- Project Libraries -->
<path id="library.teamcity_openapi.classpath">
<pathelement location="${path.variable.teamcitydistribution}/devPackage/common-api.jar"/>
<pathelement location="${path.variable.teamcitydistribution}/devPackage/server-api.jar"/>
<pathelement location="${path.variable.teamcitydistribution}/devPackage/agent-api.jar"/>
</path>
<path id="library.teamcity_utils.classpath">
<pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/openapi.jar"/>
<pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/annotations.jar"/>
<pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/util.jar"/>
</path>
<path id="library.log4j.classpath">
<pathelement location="${path.variable.teamcitydistribution}/webapps/ROOT/WEB-INF/lib/log4j-1.2.12.jar"/>
</path>
<!-- Global Libraries -->
<!-- Application Server Libraries -->
<!-- Modules -->
<!-- Module clearcase-standalone -->
<dirname property="module.clearcase-standalone.basedir" file="${ant.file}"/>
<property name="compiler.args.clearcase-standalone" value="${compiler.args}"/>
<property name="clearcase-standalone.output.dir" value="${module.clearcase-standalone.basedir}/out/production/clearcase-standalone"/>
<property name="clearcase-standalone.testoutput.dir" value="${module.clearcase-standalone.basedir}/out/test/clearcase-standalone"/>
<path id="clearcase-standalone.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="clearcase-standalone.module.classpath">
<path refid="library.teamcity_openapi.classpath"/>
<path refid="library.teamcity_utils.classpath"/>
<path refid="library.log4j.classpath"/>
</path>
<path id="clearcase-standalone.runtime.module.classpath">
<pathelement location="${clearcase-standalone.output.dir}"/>
<pathelement location="${clearcase-standalone.testoutput.dir}"/>
<path refid="library.teamcity_openapi.classpath"/>
<path refid="library.teamcity_utils.classpath"/>
<path refid="library.log4j.classpath"/>
</path>
<patternset id="excluded.from.module.clearcase-standalone">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.clearcase-standalone">
<patternset refid="excluded.from.module.clearcase-standalone"/>
</patternset>
<path id="clearcase-standalone.module.sourcepath">
<dirset dir="${module.clearcase-standalone.basedir}">
<include name="resources"/>
<include name="src"/>
</dirset>
</path>
<target name="compile.module.clearcase-standalone" depends="compile.module.clearcase-standalone.production,compile.module.clearcase-standalone.tests" description="Compile module clearcase-standalone"/>
<target name="compile.module.clearcase-standalone.production" description="Compile module clearcase-standalone; production classes">
<mkdir dir="${clearcase-standalone.output.dir}"/>
<javac destdir="${clearcase-standalone.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true">
<compilerarg line="${compiler.args.clearcase-standalone}"/>
<bootclasspath refid="clearcase-standalone.module.bootclasspath"/>
<classpath refid="clearcase-standalone.module.classpath"/>
<src refid="clearcase-standalone.module.sourcepath"/>
<patternset refid="excluded.from.compilation.clearcase-standalone"/>
</javac>
<copy todir="${clearcase-standalone.output.dir}">
<fileset dir="${module.clearcase-standalone.basedir}/resources">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
<fileset dir="${module.clearcase-standalone.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.clearcase-standalone.tests" depends="compile.module.clearcase-standalone.production" description="compile module clearcase-standalone; test classes" unless="skip.tests"/>
<target name="clean.module.clearcase-standalone" description="cleanup module">
<delete dir="${clearcase-standalone.output.dir}"/>
<delete dir="${clearcase-standalone.testoutput.dir}"/>
</target>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.clearcase-standalone" description="cleanup all"/>
<target name="all" depends="init, clean, compile.module.clearcase-standalone" description="build all"/>
</project>