-
Notifications
You must be signed in to change notification settings - Fork 13
/
build_common.xml
154 lines (137 loc) · 7.33 KB
/
build_common.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
<project name="topcoder" default="main" basedir=".">
<property environment="env"/>
<property name="Name" value="TopCoder"/>
<property name="build" value="build"/>
<property name="classes" value="${build}/classes"/>
<property name="testclasses" value="${build}/testcases"/>
<property name="global-dist.dir" value="${basedir}/../dist/artifacts"/>
<property name="external.jars.dir" location="../external-artifacts"/>
<property name="build.javadocs" value="${build}/javadocs"/>
<property name="lib.dir" value="lib"/>
<property name="jars.dir" value="${lib.dir}/jars"/>
<property name="bin" value="lib/bin"/>
<property name="src.dir" value="src"/>
<property name="java" value="${src.dir}/main"/>
<property name="shared.build" value="${basedir}/../shared"/>
<property name="shared" value="../shared/src/main"/>
<property name="testjava" value="${src.dir}/testcases"/>
<property name="resources" value="resources"/>
<property name="shared.jar" value="${bin}/shared.jar"/>
<property name="common.jar" value="${bin}/tcwebcommon.jar"/>
<property name="tccache.jar" value="${jars.dir}/tcs/tc_cache/1.0.0/tc_cache.jar"/>
<property name="web" value="src/main/com/topcoder/web"/>
<property name="deprecation" value="false"/>
<property name="debug" value="true"/>
<property name="junitsummary" value="on"/>
<property name="openid4java.dir" value="${jars.dir}/openid4java" />
<target name="main" depends="compile">
</target>
<path id="openid4java.path">
<pathelement location="${openid4java.dir}/openid4java-0.9.6.jar"/>
<pathelement location="${openid4java.dir}/commons-codec-1.3.jar"/>
<pathelement location="${openid4java.dir}/guice-2.0.jar"/>
<pathelement location="${openid4java.dir}/httpclient-4.0.jar"/>
<pathelement location="${openid4java.dir}/httpcore-4.0.1.jar"/>
<pathelement location="${openid4java.dir}/nekohtml-1.9.14.jar"/>
<pathelement location="${openid4java.dir}/xercesImpl-2.8.1.jar"/>
<pathelement location="${openid4java.dir}/socialauth-2.0-beta3.jar"/>
<pathelement location="${openid4java.dir}/json-20080701.jar"/>
</path>
<path id="class.path">
<pathelement location="${shared.jar}"/>
<pathelement location="${tccache.jar}"/>
<pathelement location="${external.jars.dir}/hibernate-3.2.5.jar"/>
<pathelement location="${external.jars.dir}/hibernate-commons-annotations-3.3.0.jar"/>
<pathelement location="${external.jars.dir}/hibernate-annotations-3.3.0.jar"/>
<pathelement location="${external.jars.dir}/ejb3-persistence-3.3.0.jar"/>
<pathelement location="${external.jars.dir}/servlet-api-2.4.jar"/>
<pathelement location="${external.jars.dir}/jsp-api-2.0.jar"/>
<pathelement location="${external.jars.dir}/jbossall-client-4.2.2.jar"/>
<pathelement location="${external.jars.dir}/object_factory-2.0.1.jar"/>
<pathelement location="${external.jars.dir}/jboss-cache-jdk50-4.2.2.jar"/>
<pathelement location="${external.jars.dir}/file_upload-2.0.jar"/>
<pathelement location="${external.jars.dir}/json_object-1.0.jar"/>
<pathelement location="${external.jars.dir}/object_formatter-1.0.jar"/>
<pathelement location="${external.jars.dir}/id_generator-3.0.0.jar"/>
<pathelement location="${external.jars.dir}/jboss-system-4.2.2.jar"/>
<pathelement location="${external.jars.dir}/httpunit-1.6.2.jar"/>
<pathelement location="${jars.dir}/tcs/contest_eligibility_validation_client/1.0.0/contest_eligibility_validation_client.jar"/>
<pathelement location="${jars.dir}/spring.jar" />
<pathelement location="${jars.dir}/commons-httpclient-3.0.1.jar"/>
<pathelement location="${jars.dir}/jackson/1.9.7/jackson-core-asl.jar"/>
<pathelement location="${jars.dir}/jackson/1.9.7/jackson-mapper-asl.jar"/>
<pathelement location="${jars.dir}/json-lib-2.3-jdk15.jar"/>
<pathelement location="${jars.dir}/commons-io-2.0.1.jar"/>
<pathelement location="${jars.dir}/commons-lang-2.4.jar"/>
<pathelement location="${jars.dir}/commons-collections-3.2.jar"/>
<pathelement location="${jars.dir}/commons-beanutils-1.8.0.jar"/>
<pathelement location="${jars.dir}/super-csv-2.1.0.jar"/>
<pathelement location="${jars.dir}/jedis-2.8.1.jar" />
<pathelement location="${jars.dir}/commons-pool2-2.4.2.jar" />
<path refid="openid4java.path" />
<pathelement location="${jars.dir}/tcs/terms_of_use/1.1.0/terms_of_use.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception/2.0.0/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/configuration_api/1.1.0/configuration_api.jar"/>
<pathelement location="${jars.dir}/tcs/configuration_persistence/1.0.2/configuration_persistence.jar"/>
<pathelement location="${jars.dir}/tcs/topcoder_commons_utility/1.0.0/topcoder_commons_utility.jar"/>
<pathelement location="${jars.dir}/tcs/logging_wrapper/2.0.0/logging_wrapper.jar"/>
<pathelement location="${jars.dir}/twitter4j-core-3.0.6.jar"/>
</path>
<!-- adding this here because i can't figure out how to use the above path element in other path elements-->
<property name="class.path" refid="class.path"/>
<target name="init">
<mkdir dir="${classes}"/>
<mkdir dir="${testclasses}"/>
<mkdir dir="${bin}"/>
</target>
<target name="compile_shared" depends="init" unless="compile_shared_set">
<ant dir="${shared.build}" target="shared-all" inheritAll="false"/>
<copy file="${global-dist.dir}/shared-SNAPSHOT.jar" tofile="${shared.jar}"/>
<property name="compile_shared_set" value="true"/>
</target>
<target name="compile" depends="init,compile_shared" unless="compile_set">
<depend srcdir="${java}" destdir="${classes}" cache="${build}/cache"/>
<javac
srcdir="${java}"
destdir="${classes}"
classpathref="class.path"
deprecation="${deprecation}"
debug="${debug}"
source="1.5"
target="1.5"
fork="true">
<include name="com/topcoder/common/**"/>
<include name="com/topcoder/web/common/**"/>
</javac>
<property name="compile_set" value="true"/>
</target>
<target name="javadocs">
<mkdir dir="${build.javadocs}"/>
<javadoc
packagenames="com.topcoder.common.*,com.topcoder.web.common.*"
sourcepath="${java}"
classpathref="class.path"
destdir="${build.javadocs}"
windowtitle="${Name} API"
doctitle="${Name} API"
maxmemory="256M"
>
</javadoc>
</target>
<target name="clean">
<!-- kill the entire build dir -->
<delete dir="${build}"/>
<delete dir="${bin}"/>
<ant dir="${shared.build}" target="clean"/>
</target>
<target name="build-dist" depends="compile">
<jar jarfile="${common.jar}">
<fileset dir="${classes}">
<include name="com/topcoder/web/common/**/*.class"/>
<include name="com/topcoder/web/tc/*.class"/>
<include name="com/topcoder/common/**/*.class"/>
<exclude name="com/topcoder/web/common/cache/admin/CacheAdmin.class"/>
</fileset>
</jar>
</target>
</project>