On Monday 18 March 2002 20:00 pm, Diane Holt wrote:
> --- Michael Laccetti <[EMAIL PROTECTED]> wrote:
> > It's a bit more in depth than that. I actually was looking for
> > something embedded within a target block. I pass in a parameter, and
> > based on it's value, I want to copy certain files only. Anything fit
> > the bill?
>
> The <include> and <exclude> tags also allow for if/unless.
But be aware that those won't do "exactly" what you're asking - to do
something based on the VALUE of a property. if/unless work if (unless) the
property is set to ANY value (including false).
i believe you can do what you're asking with something like this:
<target name="othertarget">
<property name='mycommand' value='ls -la'/>
<antcall target='foo'/>
</target>
<target name="foo">
<exec command="${mycommand}"/>
</target>
----- stephan
Generic Universal Computer Guy
[EMAIL PROTECTED] - http://www.einsurance.de
Office: +49 (89) �552 92 862 Handy: �+49 (179) 211 97 67
"I ain't gen'rally given to physicality of that nature but it saves
a lot of arguing." -- Nanny Ogg
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>