ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariano Kamp <mk...@codamax.com>
Subject Filter
Date Fri, 12 Jan 2001 15:21:13 GMT
Hi there,

  sorry for bothering you guys, but I am stuck with the filter and don't know
here to look at. The documentation was very helpful here..

  Anyway ... I am trying to use a filter like this:

  <target name="filter_web.xml">
    <filter token="dburl" value="xx"/>
    <filter token="dbdriver" value="${db.oracle.driver}"/>
    <filter token="dbuid" value="${db.oracle.uid}"/>
    <filter token="dbpw" value="${db.oracle.pw}"/>
    <filter token="zz" value="xx"/>
    <copy file="${sourceConfig}/web.xml" tofile="${tmpDir}/web.xml" />
  </target>

  As you can see with variables and constant values ...

  A portion of the file to be expanded looks like this:

    <context-param>
      <param-name>com.codamax.db.url</param-name>
      <param-value>@dburl@</param-value>
    </context-param>
    <context-param>
      <param-name>com.codamax.db.driver</param-name>
      <param-value>@dbdriver@</param-value>
    </context-param>
    <context-param>
      <param-name>com.codamax.db.user</param-name>
      <param-value>@dbuid@</param-value>
    </context-param>
    <context-param>
      <param-name>com.codamax.db.password</param-name>
      <param-value>@dbpw@</param-value>
    </context-param>

  The tokens aren't expanded in the target file and I don't have a clue why?!

  There is another thing I was wondering ... What is the scope of a filter?

Any help will be apreciated ...

Mariano

-------------------------------------------------------


Mime
View raw message