source: branches/4.2/components/common/build.xml @ 6093

Revision 6093, 1.5 KB checked in by callan, 10 years ago (diff)

Added byte buffer provider to compartmentalize the usage of map() vs. allocate() on various platforms. Also fixed test case CLASSPATH for I/O tests.

Line 
1<!--
2build.xml
3
4Ant build file for LOCI common project.
5Download Apache Ant from http://ant.apache.org/.
6Type "ant -p"  for a list of targets.
7-->
8
9<project name="common" default="jar" basedir=".">
10  <description>Common classes used by various LOCI projects</description>
11  <property name="root.dir" location="../.."/>
12  <import file="${root.dir}/ant/java.xml"/>
13  <property file="build.properties"/>
14
15  <target name="test" depends="jar, compile-tests"
16    description="run tests" if="doTests">
17    <!-- NOTE: Overrides default "test" target from java.xml -->
18    <copy tofile="${build.dir}/testng.xml"
19      file="${testng.xml.template}" overwrite="true">
20      <filterset>
21        <filter token="PARALLEL" value=""/>  <!-- Disable parallelization -->
22      </filterset>
23    </copy>
24    <testng
25        classpath="${test-classes.dir}:${classes.dir}:${component.runtime-cp}">
26      <xmlfileset file="${build.dir}/testng.xml"/>
27      <jvmarg value="-mx${testng.memory}"/>
28    </testng>
29  </target>
30
31  <target name="test-parallel" depends="compile-tests"
32    description="run parallel tests" if="doTests">
33    <copy tofile="${build.dir}/testng.xml"
34      file="${testng.xml.template}" overwrite="true">
35      <filterset>
36        <filter token="PARALLEL" value="parallel=&quot;classes&quot;"/>
37      </filterset>
38    </copy>
39    <testng
40        classpath="${test-classes.dir}:${classes.dir}:${component.runtime-cp}">
41      <xmlfileset file="${build.dir}/testng.xml"/>
42      <jvmarg value="-mx${testng.memory}"/>
43    </testng>
44  </target>
45
46</project>
Note: See TracBrowser for help on using the repository browser.