ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Rodriguez <Anth...@WeddingChannel.com>
Subject RE: using ant in the deploy process
Date Fri, 21 Sep 2001 23:28:20 GMT
Matt:

>scripting is an option, or you could use a custom task to do the
>iteration, take a peek at the following build.xml fragment:
>
>  <property name="site.sitelist" value="a,b" />
>  <property name="site.a.server" value="host_a" />
>  <property name="site.b.server" value="host_b" />
>
><target name="deploySite">
>  <propertycopy name="server" from="site.${deploy.site}.server" />
></target>
>
><target name="deployAllSites">
>  <foreach list="${site.sitelist}"
>           target="deploySite" 
>           param="deploy.site"
>           delimiter="," />
></target>

Would it be possible to keep the properties "site.sitelist",
"site.a.server", and "site.b.server" in a properties (text) file?  Then I
would load up the file using the <propertyfile/> task.  

-Anthony

Mime
View raw message