Bug 10231 - Need access to current file in SQLExec
Summary: Need access to current file in SQLExec
Status: NEW
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.5
Hardware: Sun Solaris
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2002-06-25 22:44 UTC by Kevin P. McGinn
Modified: 2008-11-24 03:57 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Kevin P. McGinn 2002-06-25 22:44:43 UTC
I have a build.xml file in a directory containing stored procedures. With the
<fileset> tag I can stipulate the files to include and exclude in the
processing. However, the sql statements that I want to process are of the form
     drop proc < current file>

Which means that the '<current file>' name needs to be replaced with the next
file name being processed.

I followed a thread in the archives from April of last year in regards to token
replacement in the <sql> tag, but I can not find any reference or documentation
as to whether this was implemented. I need the funcitonality in order to use ant
for the database build process.
Comment 1 Stefan Bodewig 2002-07-03 14:09:51 UTC
I understand that a feature like this may be critical for you, but this still is a
request for a new feature.

I don't think that property expansion would here, though, as there is no property
that holds the current file name.