OK, I don't want to 'beat a dead horse' about
should a property be immutable or not. I just
want to throw a scenario at you and ask to make
comments on how to accomplish this task without changing
property's value.
My build reads several properties from a file,
one of them is deployment.box which is the name of the box where I want
my code to be deployed (via FTP). Here is an example:
<target name="push" depends="init" if="deploy">
<ftp server="${deployment.box}"
userid="${ftp.id}"
password="${ftp.password}"
remotedir="${deploy.dir}">
<fileset dir="${build.dir}">
<include name="${package.root}\**"/>
</fileset>
</ftp>
</target>
Now, as far as there is only one box where I want to push the
code everything is clear. But now I want to push code to several
boxes in one build. This can be easily accomplished by changing
the value of deployment.box property.
How would you suggest I do this without changing property value ?
(Evidently using separate property for each box will result in code
duplication.)
I hope that this problem is general enough and I am looking forward
to your comments.
Dmitri
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>