ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cool The Breezer <techcool.ku...@yahoo.com>
Subject Ant deploy: Replace parameters
Date Thu, 07 May 2009 10:10:48 GMT

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-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message