15 |
|
<property name="build.sourcelevel" value="1.5"/> |
16 |
|
<property name="build.debug" value="true"/> |
17 |
|
<property name="build.debuglevel" value="source,lines,vars"/> |
18 |
< |
<property name="build.deprecation" value="true"/> |
18 |
> |
<property name="build.deprecation" value="false"/> |
19 |
> |
<!-- |
20 |
|
<property name="build.warnings" value="true"/> |
21 |
+ |
--> |
22 |
|
|
23 |
|
<!-- Build locations --> |
24 |
|
<property name="build.dir" location="build"/> |
96 |
|
description="Runs all tests"/> |
97 |
|
|
98 |
|
|
99 |
+ |
<target name="checkstyle" depends="init, clean-filtered-src, filter-src"> |
100 |
+ |
<taskdef resource="checkstyletask.properties" |
101 |
+ |
classpath="${lib.dir}/checkstyle-all-2.4.jar"/> |
102 |
+ |
|
103 |
+ |
<checkstyle> |
104 |
+ |
<fileset dir="${build.filter.src.dir}" includes="**/*.java"/> |
105 |
+ |
</checkstyle> |
106 |
+ |
</target> |
107 |
+ |
|
108 |
|
<target name="docs" depends="init, clean-filtered-src, filter-src" |
109 |
|
description="Builds javadocs with custom tags to build folder"> |
110 |
|
<delete dir="${build.javadocs.dir}"/> |
143 |
|
</target> |
144 |
|
|
145 |
|
|
146 |
+ |
<!-- Anthill targets --> |
147 |
+ |
|
148 |
+ |
<!-- Should really run the tests instead of just the jar target --> |
149 |
+ |
<target name="anthill-build" depends="jar, docs, dist-docs" |
150 |
+ |
description="Build the jar and both the external and internal docs"/> |
151 |
+ |
|
152 |
+ |
<target name="anthill-publish"> |
153 |
+ |
<copy todir="${deployDir}/docs/private"> |
154 |
+ |
<fileset dir="${build.javadocs.dir}"/> |
155 |
+ |
</copy> |
156 |
+ |
<copy todir="${deployDir}/docs/public"> |
157 |
+ |
<fileset dir="${dist.javadocs.dir}"/> |
158 |
+ |
</copy> |
159 |
+ |
</target> |
160 |
+ |
|
161 |
+ |
|
162 |
|
<!-- Internal targets --> |
163 |
|
|
164 |
|
<target name="set-warnings-if" if="build.warnings"> |
216 |
|
<mkdir dir="${build.filter.src.dir}"/> |
217 |
|
<copy todir="${build.filter.src.dir}"> |
218 |
|
<fileset dir="${src.dir}"> |
219 |
< |
<include name="**/*.java"/> |
219 |
> |
<include name="java/**/*.java"/> |
220 |
|
</fileset> |
221 |
|
<filterchain> |
222 |
|
<filterreader classname="jsr166.ant.filters.ReplaceFilter" |
278 |
|
showoutput="true" |
279 |
|
errorProperty="junit.failed" |
280 |
|
failureProperty="junit.failed" |
281 |
< |
dir="${build.reports.dir}"> |
281 |
> |
dir="${build.reports.dir}" |
282 |
> |
fork="true"> |
283 |
> |
|
284 |
> |
<jvmarg value="-Xbootclasspath/p:${product.jar}"/> |
285 |
|
|
286 |
|
<classpath> |
287 |
< |
<path refid="test.classpath"/> |
287 |
> |
<!-- <path refid="test.classpath"/> --> |
288 |
|
<pathelement location="${build.testcases.dir}"/> |
289 |
|
</classpath> |
290 |
|
|