$ svn info
URL: https://svn.apache.org/repos/asf/ant/core/branches/ANT_17_BRANCH
Revision: 631491
$ java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
Windows XP SP2 32bit (German)
$build dist-lite
--> works
$build dist
BUILD FAILED
C:\ant\svn-repository\ant\core_17_branch\build.xml:980: The following
error occurred while executing this line:
C:\ant\svn-repository\ant\core_17_branch\build.xml:1000: No supported
regular expression matcher found
$build test
[junit] Testcase:
testHasErrorInCase(org.apache.tools.ant.util.FileUtilsTest): FAILED
[junit] null
[junit] junit.framework.AssertionFailedError
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at junit.framework.Assert.assertTrue(Assert.java:27)
[junit] at
org.apache.tools.ant.util.FileUtilsTest.testHasErrorInCase(FileUtilsTest
.java:577)
[au:antunit] Build File:
C:\ant\svn-repository\ant\core_17_branch\src\tests\antunit\taskdefs\opti
onal\script\scriptdef-test.xml
[au:antunit] Tests run: 6, Failures: 0, Errors: 6, Time elapsed: 0,047
sec
[au:antunit] Target: testMixedResources caused an ERROR
[au:antunit] at line 78, column 9
[au:antunit] Message: Unable to load a script engine manager
(org.apache.bsf.BSFManager or javax.script.ScriptEngineManager)
[au:antunit] took 0,015 sec
public void testHasErrorInCase() {
File tempFolder = new
File(System.getProperty("java.io.tmpdir"));
File wellcased = FILE_UTILS.createTempFile("alpha", "beta",
tempFolder);
String s = wellcased.getName().toUpperCase();
File wrongcased = new File(tempFolder, s);
if (Os.isFamily("dos")) {
assertTrue(FILE_UTILS.hasErrorInCase(wrongcased));
<---------- error occured here
assertFalse(FILE_UTILS.hasErrorInCase(wellcased));
} else {
assertFalse(FILE_UTILS.hasErrorInCase(wrongcased));
assertFalse(FILE_UTILS.hasErrorInCase(wellcased));
}
}
Jan