ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@ufl.edu
Subject Re: Foreach task)
Date Mon, 11 Jun 2001 19:02:36 GMT

=> On Mon, 11 Jun 2001 10:46:34 -0700, Peter  Vogel <pvogel@arsin.com> said:

> The *right* way would be for a couple of terms that are used anytime a 
> human describes a build process to find their way into the ant core:
> 	foreach, if

Hmm.  How about:

'There should be no argument to any ant task which takes only a singular
argument.  It should take a list of possibly one item, and promote a singular
argument to a list of one if necessary.'

Then your foreaches magically fall out.

<target name="deploy" depends="tested-out-the-wazoo">
<ftp hosts="hostlistname"
     files="filesetname"
     remotebasedir="foo"
     />
</target>


<target name="restart" depends="deploy">
<remote-restart
	hosts="hostlistname"
	cmd="restart-thinumbob"
	/>
</target>


- Allen S. Rout

Mime
View raw message