소스 검색

Only try to use clover if there's a license

Fixes CORE-7

Change-Id: Ib25a6ae0664a3bccc2fe1d4f598d557e72f4c9d7
Reviewed-on: http://gerrit.dmdirc.com/1519
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: Chris Smith <chris@dmdirc.com>
tags/0.6.5b1
Chris Smith 13 년 전
부모
커밋
ab31f434cc
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7
    1
      build-tests.xml

+ 7
- 1
build-tests.xml 파일 보기

@@ -5,9 +5,15 @@
5 5
     <property name="clover.jar" location="lib/clover.jar"/>
6 6
     <taskdef resource="cloverlib.xml" classpath="${clover.jar}"/>
7 7
     <taskdef resource="cloverjunitlib.xml" classpath="${clover.jar}"/>
8
-    <available property="clover.installed" classname="com.cenqua.clover.CloverInstr" />
9 8
     <available file="/usr/bin/xvfb-run" property="has.xvfb"/>
10 9
 
10
+    <condition property="clover.installed">
11
+     <and>
12
+      <available classname="com.cenqua.clover.CloverInstr"/>
13
+      <available file="lib/clover.license"/>
14
+     </and>
15
+    </condition>
16
+
11 17
     <target name="with.clover" depends="clean" if="clover.installed"
12 18
             description="Set up Clover to instrument tests.">
13 19
         <clover-clean/>

Loading…
취소
저장