Hi,

  I have a question about resolving variable names.

  We are developing with two different database - oracle and postgres.
  One of the things we are trying to tackle is the creation of the
tables. We store our database definitions in an xml sheet and pass a
parameter into it (oracle/postgres) for the mapping of the datatypes. This
parameter is passed to ant on the command line and everything is working
fine. The only problem is for launching the sql script that I need to
provide some parameters like the database url. In ant I have the
parameters defined like this:

  <property name="db.oracle.url"   .../>
  <property name="db.postgres.url" .../>

I don't have a clue about how to select one of these values at runtime. I
pass in a parameter called db which holds for example "oracle". What I
tried was:

  <sql url="${db.${db}.driver}" ...../>

Which isn't working ... Is there any alternative to solve my problem?

Mariano Kamp

        

-- 
mariano kamp
codamax ag
hessenring 89

61348 bad homburg v.d.h.
germany

phone  +49 6172 182 473
fax    +49 6172 182 475
mobile +49 177 727 9468

Reply via email to