ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristan Vingrys" <kving...@agentissoftware.com>
Subject Jpcovreport - No supported regular expression matcher found
Date Fri, 19 Jul 2002 05:28:00 GMT
HI,

I am having some problems with the jpcovreport task and in particular the
reference element. I get an error "No supported regular expression matcher
found", even though I am including "jakarta-oro-2.0.6.jar" in the classpath
by putting it in <ANT_HOME>/lib, (I have also tried jakarta-regexp with no
success). (See output below.). If I do not include the reference element the
report is succesfully produced. Any help would be greatly appreciated.

I have included the Ant Task and a snippet of the output below.

Regards,

Kristan


Here is the Ant Task.

<target name="jpcovreport" depends="compile">

      <condition property="jprobe.home" value="${jprobe.windows.home}" >
          <os family="windows" />
      </condition>

      <echo message="JProbe.home: ${jprobe.home}"/>
      <echo message="JProbe.windows.home: ${jprobe.windows.home}"/>
      <echo message="Java class path: ${java.class.path}"/>
      <jpcovreport
         home="${jprobe.home}"
         snapshot="${reports.dir}/net.agentis.apml_1"
         format="xml"
         tofile="${reports.dir}/result.xml">
         <sourcepath>
	    <pathelement path="${apml.src.dir}"/>
         </sourcepath>
         <reference>
            <classpath>
               <path refid="compile.classpath"/>
            </classpath>
            <filters>
               <include class="net.agentis.*"/>
            </filters>
         </reference>
       </jpcovreport>
  </target>

Regards,

Kristan


     [echo] Java class path:
c:\m4\lincoln\tools\common\jakarta-ant-1.4.1\lib\op
tional.jar;c:\m4\lincoln\tools\common\jakarta-ant-1.4.1\lib\junit.jar;c:\m4\
linc
oln\tools\common\jakarta-ant-1.4.1\lib\jaxp.jar;c:\m4\lincoln\tools\common\j
akar
ta-ant-1.4.1\lib\jakarta-oro-2.0.6.jar;c:\m4\lincoln\tools\common\jakarta-an
t-1.
4.1\lib\crimson.jar;c:\m4\lincoln\tools\common\jakarta-ant-1.4.1\lib\ant.jar
;c:\
m4\lincoln\tools\common\jakarta-ant-1.4.1\lib\NetComponents.jar;c:\m4\lincol
n\to
ols\common\junit3.7\junit.jar;c:\m4\lincoln\tools\common\xalan-java-2.3.1\bi
n\xa
lan.jar;c:\m4\lincoln\tools\common\xalan-java-2.3.1\bin\xercesImpl.jar;c:\m4
\lin
coln\tools\common\xalan-java-2.3.1\bin\xml-apis.jar;c:\m4\lincoln\tools\wind
ows\
jdk1.3.1_01\lib\tools.jar
[jpcovreport] "C:\Program
Files\JProbe\Coverage\jpcovreport" -format=xml -output
=C:\m4\agentis\build\reports\result.xml -snapshot=C:\m4\agentis\build\report
s\ne
t.agentis.apml_1 -sourcepath=C:\m4\agentis\apml
[jpcovreport] coveragePath: null
[jpcovreport] format: xml
[jpcovreport] Creating enhanced XML report

BUILD FAILED

c:\m4\agentis\apml\build.xml:394: Error while performing enhanced XML report
fro
m file C:\m4\agentis\build\reports\result.xml
        at
org.apache.tools.ant.taskdefs.optional.sitraka.CovReport$Reference.cr
eateEnhancedXMLReport(CovReport.java:382)
        at
org.apache.tools.ant.taskdefs.optional.sitraka.CovReport.execute(CovR
eport.java:294)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
No supported regular expression matcher found
        at
org.apache.tools.ant.util.regexp.RegexpMatcherFactory.newRegexpMatche
r(RegexpMatcherFactory.java:94)
        at
org.apache.tools.ant.taskdefs.optional.sitraka.ReportFilters.createMa
tchers(ReportFilters.java:125)
        at
org.apache.tools.ant.taskdefs.optional.sitraka.ReportFilters.accept(R
eportFilters.java:98)
        at
org.apache.tools.ant.taskdefs.optional.sitraka.XMLReport.createNodeMa
ps(XMLReport.java:157)
        at
org.apache.tools.ant.taskdefs.optional.sitraka.XMLReport.createDocume
nt(XMLReport.java:199)
        at
org.apache.tools.ant.taskdefs.optional.sitraka.CovReport$Reference.cr
eateEnhancedXMLReport(CovReport.java:373)
        at
org.apache.tools.ant.taskdefs.optional.sitraka.CovReport.execute(CovR
eport.java:294)
        at org.apache.tools.ant.Task.perform(Task.java:217)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 3 seconds


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message