Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 264 lines (234 sloc) 8.722 kb
fbd0f95d »
2009-01-02 Initial import
1 <?xml version="1.0"?>
2
3 <project name="voldemort" basedir="." default="all">
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
4 <property file="build.properties"/>
5
6 <property name="name" value="voldemort"/>
7 <property name="display.name" value="Voldemort"/>
8 <property name="author" value="Jay Kreps"/>
bf42b0ec »
2009-03-08 Need to import environment variables.
9 <property environment="env"/>
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
10
11 <path id="main-classpath">
12 <fileset dir="${lib.dir}">
13 <include name="*.jar"/>
14 </fileset>
15 <pathelement path="${classes.dir}"/>
16 </path>
17
18 <path id="contrib-classpath">
19 <fileset dir="${dist.dir}">
20 <include name="${name}-${curr.release}.jar" />
21 </fileset>
22 <fileset dir="${contrib.src.dir}">
23 <include name="**/*.jar" />
24 </fileset>
1891f31f »
2009-02-27 Fix contrib build problems.
25 <path refid="test-classpath" />
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
26 </path>
27
28 <path id="test-classpath">
bf42b0ec »
2009-03-08 Need to import environment variables.
29 <pathelement path="${env.VOLD_TEST_JARS}"/>
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
30 <path refid="main-classpath" />
31 <pathelement path="${testclasses.dir}"/>
32 </path>
33
34 <path id="contrib-test-classpath">
35 <path refid="main-classpath" />
36 <path refid="contrib-classpath" />
37 <fileset dir="${dist.dir}">
38 <include name="${name}-contrib-${curr.release}.jar" />
39 </fileset>
40 </path>
41
42 <macrodef name="replace-dir">
43 <attribute name="dir"/>
44 <sequential>
45 <delete dir="@{dir}"/>
46 <mkdir dir="@{dir}"/>
47 </sequential>
48 </macrodef>
49
1891f31f »
2009-02-27 Fix contrib build problems.
50 <target name="all" depends="clean, srcjar, jar, test, contrib-jar" description="Build all artifacts." />
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
51
52 <target name="clean" description="Delete generated files.">
53 <delete dir="${dist.dir}" />
54 <replace-dir dir="${javadoc.dir}"/>
55 </target>
56
57 <target name="build" description="Compile main source tree java files">
58 <replace-dir dir="${classes.dir}"/>
59 <!-- copy non-java files to classes dir to load from classpath -->
60 <copy todir="${classes.dir}">
61 <fileset dir="${java.dir}">
62 <exclude name="**/*.java"/>
63 <exclude name="**/*.html"/>
64 </fileset>
65 </copy>
66 <javac destdir="${classes.dir}" target="1.5" debug="true" deprecation="true" failonerror="true">
67 <src path="${java.dir}"/>
68 <classpath refid="main-classpath"/>
69 </javac>
70 <buildnumber file="build_number.txt"/>
71 </target>
189a43da »
2009-03-07 Test ant target must copy in configs.
72
73 <target name="buildtest" description="Compile test classes">
74 <replace-dir dir="${testclasses.dir}"/>
75 <copy todir="${testclasses.dir}">
76 <fileset dir="${commontestsrc.dir}">
77 <exclude name="**/*.java"/>
78 <exclude name="**/*.html"/>
79 </fileset>
80 </copy>
81 <javac destdir="${testclasses.dir}" target="1.5" debug="true" deprecation="true" failonerror="true">
82 <src path="${unittestsrc.dir}"/>
83 <src path="${inttestsrc.dir}"/>
84 <src path="${commontestsrc.dir}"/>
85 <classpath refid="main-classpath"/>
86 </javac>
87 </target>
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
88
89 <target name="test" depends="build, buildtest" description="Build test jar file">
90 <jar destfile="${dist.dir}/${name}-test-${curr.release}.jar">
91 <fileset dir="${testclasses.dir}"/>
92 </jar>
93 </target>
94
95 <target name="jar" depends="build" description="Build server jar file">
96 <jar destfile="${dist.dir}/${name}-${curr.release}.jar">
97 <fileset dir="${classes.dir}">
98 <include name="**/*.*"/>
99 </fileset>
100 <!-- include xsds -->
101 <fileset dir="${java.dir}">
102 <include name="**/*.xsd"/>
103 </fileset>
104 </jar>
105 </target>
106
107 <target name="srcjar" description="Build source jar file">
108 <mkdir dir="${dist.dir}"/>
109 <jar destfile="${dist.dir}/${name}-${curr.release}-src.jar">
110 <fileset dir="${java.dir}">
111 <include name="**/*.java"/>
112 </fileset>
113 </jar>
114 </target>
115
2f0129a1 »
2009-02-27 read-only swapper and test committed.
116 <target name="contrib-build" depends="build, buildtest" description="Compile contrib packages (java and test) ">
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
117 <replace-dir dir="${contrib.classes.dir}"/>
118 <!-- copy non-java files to classes dir to load from classpath -->
119 <copy todir="${contrib.classes.dir}">
120 <fileset dir="${contrib.java.dir}">
121 <exclude name="**/*.java"/>
122 <exclude name="**/*.html"/>
123 </fileset>
124 </copy>
125 <javac destdir="${contrib.classes.dir}" target="1.5" debug="true" deprecation="true" failonerror="true">
126 <src path="${contrib.java.dir}"/>
127 <classpath refid="main-classpath"/>
128 <classpath refid="contrib-classpath"/>
129 </javac>
130 <buildnumber file="build_number.txt"/>
131 </target>
132
133 <target name="contrib-jar" depends="contrib-build" description="Build contrib jar file">
134 <jar destfile="${dist.dir}/${name}-contrib-${curr.release}.jar">
135 <fileset dir="${contrib.classes.dir}">
136 <include name="**/*.*"/>
137 </fileset>
138 <!-- include xsds -->
139 <fileset dir="${contrib.java.dir}">
140 <include name="**/*.xsd"/>
141 </fileset>
142 </jar>
143 </target>
144
145 <target name="contrib-srcjar" description="Build contrib source jar file">
146 <mkdir dir="${dist.dir}"/>
147 <jar destfile="${dist.dir}/${name}-contrib-${curr.release}-src.jar">
148 <fileset dir="${contrib.java.dir}">
149 <include name="**/*.java"/>
150 </fileset>
151 </jar>
152 </target>
153
154 <target name="utils" depends="build" description="Build a jar file with voldemort util classes.">
155 <tstamp>
156 <format property="TODAY" pattern="yyyy-MM-dd" locale="en,US"/>
157 </tstamp>
158 <jar destfile="${dist.dir}/${name}-utils-${TODAY}.jar">
159 <fileset dir="${classes.dir}">
160 <include name="voldemort/VoldemortException.class"/>
161 <include name="voldemort/Serializer.class"/>
162 <include name="voldemort/serialization/SerializationException.class"/>
163 <include name="voldemort/serialization/json/*"/>
164 <include name="voldemort/utils/*"/>
165 </fileset>
166 </jar>
167 </target>
168
169 <target name="contrib-junit" depends="contrib-jar" description="Run contrib junit tests.">
170 <junit printsummary="yes" maxmemory="1024m" showoutput="true" failureProperty="test.failure">
171 <classpath refid="contrib-test-classpath"/>
172 <formatter type="brief" usefile="false"/>
173 <batchtest fork="yes" todir="${testreport.dir}">
174 <fileset dir="${contrib.classes.dir}">
175 <include name="**/Test*.class"/>
176 </fileset>
177 </batchtest>
178 </junit>
179 </target>
180
181 <target name="junit" depends="build, buildtest" description="Run junit tests.">
182 <replace-dir dir="${testreport.dir}"/>
183 <replace-dir dir="${testhtml.dir}"/>
184 <junit printsummary="yes" showoutput="true">
185 <classpath refid="test-classpath"/>
186 <formatter type="xml"/>
187 <batchtest fork="yes" todir="${testreport.dir}">
188 <fileset dir="${unittestsrc.dir}">
189 <include name="**/*Test.java"/>
bf42b0ec »
2009-03-08 Need to import environment variables.
190 <exclude name="**/Abstract*.java" />
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
191 </fileset>
192 </batchtest>
193 </junit>
194 <junitreport todir="${testhtml.dir}">
195 <fileset dir="${testreport.dir}">
196 <include name="TEST-*.xml"/>
197 </fileset>
96ef3aa7 »
2009-03-07 Remove referrence to non-existant junit stylesheet.
198 <report todir="${testhtml.dir}" format="frames" />
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
199 </junitreport>
200 </target>
201
202 <target name="war" depends="build" description="Build server war file">
203 <war destfile="${dist.dir}/${name}.war" webxml="web.xml" basedir="${classes.dir}">
204 <classes dir="${classes.dir}"/>
205 <lib dir="${lib.dir}">
206 <exclude name="${lib.dir}/servlet-api.jar"/>
207 <exclude name="${lib.dir}/src/**"/>
208 </lib>
209 </war>
210 </target>
211
212 <macrodef name="make-javadocs">
213 <attribute name="dir"/>
214 <attribute name="packagenames"/>
215 <sequential>
216 <replace-dir dir="@{dir}"/>
217 <javadoc sourcepath="${java.dir}" destdir="@{dir}" windowtitle="${display.name}"
8219a4ae »
2009-01-19 Cleanup. Add support for removing versioning from voldemort config. M…
218 source="1.5" author="true" version="true" use="true" packagenames="@{packagenames}">
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
219 <doctitle>${display.name}</doctitle>
220 <bottom>${author}</bottom>
221 <classpath refid="main-classpath"/>
222 </javadoc>
223 </sequential>
224 </macrodef>
225
226 <target name="docs" description="Create complete Javadoc documentation">
227 <make-javadocs dir="${javadoc.dir}/all" packagenames="*"/>
228 <make-javadocs dir="${javadoc.dir}/client" packagenames="voldemort.versioning.*, voldemort.client.*,voldemort.serialization.*"/>
229 <make-javadocs dir="${javadoc.dir}/contrib" packagenames="voldemort.contrib.*"/>
230 </target>
231
232 <target name="redeploy" depends="war, deploy">
233 </target>
234
235 <taskdef file="tomcat-tasks.properties">
236 <classpath>
237 <path location="${lib.dir}/catalina-ant.jar"/>
238 </classpath>
239 </taskdef>
240
241 <target name="list" description="List Tomcat applications">
242 <list url="${tomcat.manager.url}"
fbd0f95d »
2009-01-02 Initial import
243 username="${tomcat.manager.username}"
244 password="${tomcat.manager.password}"/>
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
245 </target>
fbd0f95d »
2009-01-02 Initial import
246
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
247 <target name="deploy" description="Deploy application" depends="war">
248 <deploy url="${tomcat.manager.url}"
fbd0f95d »
2009-01-02 Initial import
249 username="${tomcat.manager.username}"
250 password="${tomcat.manager.password}"
251 path="${tomcat.context}"
252 update="true"
253 war="file:${dist.dir}/${name}.war"/>
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
254 </target>
fbd0f95d »
2009-01-02 Initial import
255
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
256 <target name="undeploy" description="Undeploy application">
257 <undeploy url="${tomcat.manager.url}"
fbd0f95d »
2009-01-02 Initial import
258 username="${tomcat.manager.username}"
259 password="${tomcat.manager.password}"
260 path="${tomcat.context}"/>
1b788672 »
2009-02-05 ReadOnly store batch data indexer package as contrib.
261 </target>
fbd0f95d »
2009-01-02 Initial import
262
263 </project>
Something went wrong with that request. Please try again.