ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Dawson" <>
Subject [patch] added file reference capability to SQL task
Date Fri, 08 Mar 2002 16:36:40 GMT
This patch adds the capability to have a SQL file reference another
file. Rather than relying on a nested FileSet that has no specified
order, you can specify a sql file that will refer to the files one at a
time, e.g. 

-- foo.sql --
select * from foo;

-- bar.sql --
select * from bar;

-- baz.sql --
select * from baz;

will execute 
select * from foo;
select * from bar;
select * from baz;

I made this change to the <sql> task because our DBA had been using this
approach for sql files run from SQLPLUS and I wanted to be able to
automate that process with Ant so it could be part of our auto-build.
(plus I didn't want to install the SQL client on our build box)

If the sql being executed comes from a file, and the file references are
relative, I made them relative to the original file, not the JVM's
current directory, which seemed like it would be a little easier to

Tim Dawson
Lead Technical Architect
Notiva Corporation

View raw message