ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 57293] New: Substitutions containing \( are replaced by (
Date Mon, 01 Dec 2014 18:45:22 GMT

            Bug ID: 57293
           Summary: Substitutions containing \( are replaced by (
           Product: Ant
           Version: 1.9.4
          Hardware: PC
                OS: Mac OS X 10.4
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks

given file prep.js with contents:

and the following build.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="abc" default="build">
  <target name="build">
    <replaceregexp file="./prep.js"


running "ant" results in prep.js containing:

rather than the expected:

We ran into this bug in a production system using replaceregexp to insert the
contents of one file into another. This method is widely recommended on the
webs and will fail for any file containing, e.g. a regular expression matching
a parenthesis (e.g. the javascript /\(/).

You are receiving this mail because:
You are the assignee for the bug.

View raw message