When I run ant on CentOS to build java project I receive an error:
Could not create task or type of type: replaceregexp
ant -diagnostics shows that optional tasks are not available. How I can install optional tasks for ant?
Ant is installed from CentOS package.
Works for me: