ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Ant deploy: Replace parameters
Date Thu, 07 May 2009 12:00:17 GMT
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.kumar@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-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message