change the copy line to include filtering
<copy file="${sourceConfig}/web.xml" tofile="${tmpDir}/web.xml"
filtering="on" />
> -----Original Message-----
> From: Mariano Kamp [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 10:21 AM
> To: [EMAIL PROTECTED]
> Subject: Filter
>
>
> 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
>
> -------------------------------------------------------
>