I think the focus of the <deploy> task is to bring the archive into the server, not to change files.
You could write the DD as template and use a <copy><filterset> for generating the 'real' DD. http://ant.apache.org/manual/CoreTypes/filterset.html Jan >-----Ursprüngliche Nachricht----- >Von: Cool The Breezer [mailto:techcool.ku...@yahoo.com] >Gesendet: Donnerstag, 7. Mai 2009 12:11 >An: Ant Users List >Betreff: Ant deploy: Replace parameters > > >Hi, > The deployment descriptor contains dynamic values and looks like ><Context path="/doceng" reloadable="true" docBase="${docBase}"> > <Resource name="jdbc/docengdb" auth="Container" > type="javax.sql.DataSource" > driverClassName="${driverclassName}" > url="${dburl}" > username="${dbusername}" > password="${dbpassword}" > maxActive="${maxactive}" > maxIdle="${maxidle}" > maxWait="${maxwait}"/> ></Context> > >All the parameters are defined in build.properties but deploy >task does not change the values, which results bad deployment. >The ant deploy task is > > <target name="deploy.app.context" description="Deploys the >application to this host's servers"> > <deploy > url="${remote.tomcat.manager.url}" > username="${remote.tomcat.manager.username}" > password="${remote.tomcat.manager.password}" > path="/test" > config="file:///${doceng.home}/tomcat/test.xml"/> > </target> > >Any suggestion to achieve the same > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscr...@ant.apache.org >For additional commands, e-mail: user-h...@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org