build.xml 2.19 KB
Newer Older
1
2
3
4
5
6
<?xml version="1.0"?>

<!DOCTYPE project [
       <!ENTITY base SYSTEM "src/build/java/base.xml">
]>

iwakeh's avatar
iwakeh committed
7
<project default="usage" name="metrics-lib" basedir=".">
8

Karsten Loesing's avatar
Karsten Loesing committed
9
  <property name="release.version" value="2.4.0-dev" />
10
  <property name="javadoc-title" value="Tor Metrics Library API Documentation"/>
11
  <property name="javadoc-excludes" value="**/impl/** **/index/** **/internal/** **/log/**" />
12
  <property name="implementation-title" value="Tor Metrics Library" />
iwakeh's avatar
iwakeh committed
13
  <property name="name" value="metrics-lib" />
14
  <property name="jarpatternprop" value="empty" />
15

16
  <patternset id="runtime" >
17
      <include name="commons-codec-1.10.jar"/>
18
      <include name="commons-compress-1.13.jar"/>
Karsten Loesing's avatar
Karsten Loesing committed
19
20
21
      <include name="jackson-annotations-2.8.6.jar"/>
      <include name="jackson-core-2.8.6.jar"/>
      <include name="jackson-databind-2.8.6.jar"/>
22
23
      <include name="slf4j-api-1.7.22.jar" />
      <include name="xz-1.6.jar"/>
24
25
  </patternset>

26
27
  <target name="coverage-check">
      <cobertura-check totallinerate="58" totalbranchrate="50" >
28
29
30
31
32
33
34
35
36
37
38
39
40
41
      <regex pattern="org.torproject.descriptor.benchmark.*"
             linerate="0" branchrate="0"/>
      <regex pattern="org.torproject.descriptor.index"
             linerate="97" branchrate="62"/>
      <regex pattern="org.torproject.descriptor.DescriptorSourceFactory"
             linerate="100" branchrate="77"/>
      <regex pattern="org.torproject.descriptor.index.DescriptorIndexCollector"
             linerate="92" branchrate="61"/>
      <regex pattern="org.torproject.descriptor.index.IndexNode"
             linerate="100" branchrate="61"/>
      <regex pattern="org.torproject.descriptor.index.FileNode"
             linerate="100" branchrate="100"/>
      <regex pattern="org.torproject.descriptor.index.DirectoryNode"
             linerate="100" branchrate="100"/>
42
43
44
    </cobertura-check>
  </target>

45
46
47
48
49
50
51
52
53
54
55
56
  <target name="benchmark" depends="compile,testcompile">
    <java fork="true"
          maxmemory="2048m"
          classname="org.torproject.descriptor.benchmark.MeasurePerformance">
      <classpath refid="test.classpath"/>
    </java>
  </target>

  <!-- The following line adds the common targets and properties
       for Metrics' Java Projects.
  -->
  &base;
57

58
</project>