I am trying to build Java 7 from the Oracle source code; in Java 7 part of the build uses Ant. The build is proceeding OK until, in the JAXP section, I get an error:
java7/jaxp/build.xml:105: Problem: failed to create task or type replaceregexp
Cause: the class org.apache.tools.ant.taskdefs.optional.ReplaceRegExp was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-a directory added on the command line with the -lib argument
I found a jar file with the class - ant-nodeps-1.7.1.jar.
(I am using Ant 1.7.1)
I put this in /usr/share/ant/lib, but when I rerun I continue to get the same error. I tried several tweaks to try to get it to look in the jar, to no avail.
I haven't done much with Ant before (avoid it like the plague, actually, as I despise the whole programming-by-xml concept) but I am trying to get this built. The documentation for Ant doesn't seem to say anything about how classpath is selected and googling has been largely useless.
If there are any Ant experts who can explain what the problem is here, your help would be welcome.