Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Building visage fails with "No supported regular expression match"

When building visage from source using ant-1.7 on ubuntu it fails with the message

build.xml:52: No supported regular expression matcher found: java.lang.ClassNotFoundException: org.apache.tools.ant.util.regexp.Jdk14RegexpRegexp

How do I solve this ?

like image 866
Gautam Avatar asked Sep 05 '12 14:09

Gautam


2 Answers

The regular expression matcher is found in the ant-optional package for Ubuntu, and installing that solves the problem.

sudo apt-get install ant-optional

like image 160
Gautam Avatar answered Sep 22 '22 23:09

Gautam


FYI in Centos the package name is ant-apache-regexp

yum install ant-apache-regexp
like image 24
slashmili Avatar answered Sep 22 '22 23:09

slashmili