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

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

7
8
<project default="usage" name="metrics-lib" basedir="."
         xmlns:ivy="antlib:org.apache.ivy.ant">
9

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

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

27
28
  <target name="coverage-check">
      <cobertura-check totallinerate="58" totalbranchrate="50" >
29
30
31
32
33
34
35
36
37
38
39
40
41
42
      <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"/>
43
44
45
    </cobertura-check>
  </target>

46
47
48
49
50
51
52
53
54
55
56
57
  <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;
58

59
</project>