ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick (Gus) Heck" <patrick.h...@olin.edu>
Subject Test failing: testReplace(org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest)
Date Tue, 28 May 2002 18:22:49 GMT
I just did a checkout, build, and build test of ANT_15_BRANCH, and the 
test run failed (pasted below). I am thinking that build.xml probably is 
failing to check for the existance of a regexp package before deciding 
to run the test. Someone who knows build.xml should check this 
supposition though. Of course there have been a number of changes to the 
regexp stuff recently too. I do know that I used to get a clean test run 
from a clean checkout, and now I don't.

Gus

---Failure pasted below here---

Testsuite: org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest
Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.171 sec

Testcase: 
testReplace(org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest)Caused 
an ERROR
No supported regular expression matcher found
src/etc/testcases/taskdefs/optional/replaceregexp.xml:13: No supported 
regular expression matcher found
        at 
org.apache.tools.ant.util.regexp.RegexpFactory.newRegexp(RegexpFactory.java:109)
        at 
org.apache.tools.ant.util.regexp.RegexpFactory.newRegexp(RegexpFactory.java:75)
        at 
org.apache.tools.ant.types.RegularExpression.<init>(RegularExpression.java:109)
        at 
org.apache.tools.ant.taskdefs.optional.ReplaceRegExp.createRegexp(ReplaceRegExp.java)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.tools.ant.IntrospectionHelper$1.create(IntrospectionHelper.java:281)
        at 
org.apache.tools.ant.IntrospectionHelper.createElement(IntrospectionHelper.java:524)
        at 
org.apache.tools.ant.helper.ProjectHelperImpl$NestedElementHandler.init(ProjectHelperImpl.java:958)
        at 
org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.startElement(ProjectHelperImpl.java:869)
        at 
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:393)
        at 
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:216)
        at 
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:594)
        at 
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:817)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:748)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1454)
        at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
        at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
        at 
org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
        at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
        at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1148)
        at 
org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)
        at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117)
        at 
org.apache.tools.ant.BuildFileTest.configureProject(BuildFileTest.java:231)
        at 
org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest.setUp(ReplaceRegExpTest.java:75)
        at junit.framework.TestCase.runBare(TestCase.java:138)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:131)
        at junit.framework.TestSuite.runTest(TestSuite.java:173)
        at junit.framework.TestSuite.run(TestSuite.java:168)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnitTask.java)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask.java)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1216)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1160)
        at org.apache.tools.ant.Main.runBuild(Main.java:605)
        at org.apache.tools.ant.Main.start(Main.java:195)
        at org.apache.tools.ant.Main.main(Main.java:234)



BUILD FAILED
/home/gus/projects/jakarta-ant/build.xml:1215: Test 
org.apache.tools.ant.taskdefs.optional.ReplaceRegExpTest failed


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


Mime
View raw message