Author: kkolinko
Date: Sun Nov 24 22:07:08 2013
New Revision: 1545084

URL: http://svn.apache.org/r1545084
Log:
Exclude AprSocket class from instrumentation.

Cobertura fails to instrument it, because it causes loading 
jni.socket.AprSocketContext and jni.Library
which fails when tcnative library is absent in java.library.path.

No need to backport, as this class is absent in Tomcat 7.

Modified:
    tomcat/trunk/build.xml

Modified: tomcat/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/build.xml?rev=1545084&r1=1545083&r2=1545084&view=diff
==============================================================================
--- tomcat/trunk/build.xml (original)
+++ tomcat/trunk/build.xml Sun Nov 24 22:07:08 2013
@@ -1386,6 +1386,8 @@
         <exclude name="**/OneLineFormatter*.class"/>
         <exclude name="**/DateFormatCache.class"/>
         <exclude name="**/DateFormatCache*.class"/>
+        <!-- This class cannot be instrumented when tcnative library is not in 
java.library.path -->
+        <exclude name="**/jni/socket/AprSocket.class"/>
       </fileset>
       <auxClasspath path="${jdt.jar}" />
     </cobertura-instrument>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to