Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Am i doing this right RE: ReplaceRegExp

jonese

2008-02-12

Replies: Find Java Web Hosting

Author LoginPost Reply
I have a simple build file and i'm trying to change some text in a .SQL file.

in my build file i have the following target
<target name="sql-gen-schema-file" description="generates the file
which creates tables, views etc">
<replaceregexp file="DB/MS SQL
${db.server.version}/boomsocket_MSSQL_${db.server.version}.sql"
 match="\[[a-zA-Z0-1]{1,}\]"
 replace="[${db.name}]"
 flags="i" />
</target>

I know the regex is good but every time i run it nothing happens to my
.SQL file.

am i missing something?

Running ant 1.7.x on Windows XP Pro

eric

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.