This functionality currently doesn't exist (I don't think). I adapted
a new task from the existing Ant task that accepts filesets, which
means you can specify something like <include name="**/build.xml"/>
within the fileset, and run build files "somewhere" else...we currently
use it to provide a build process that has many entry points (dirs),
and can adapt to additions of large sub-projects on the fly with no
adjustment to the master build.xml for default builds. If this is the
type of behavior (drop-in) you're after, let me know and I can probably
help out.
Thanks,
John
-----Original Message-----
From: kenwardj [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 4:05 PM
To: ant-user
Cc: kenwardj
Subject: Re: Task from a task?
Perhaps I was unclear.
What I meant was to call 'ant' and I didn't know the directory it was
in,
but I knew what it was called.
For instance, if I had build.xml in /x, and there was another created
dynamically somewhere down in the directory tree, how would 'ant' find
it?
I'm trying to use the Style command to find a set of pre-build xml
files,
transform them into build files, and then call 'ant' on them. The
problem
is that these pre-build files may or may not exist, so I want to
dynamically call 'ant' on the ones it finds.
-Jeff
Kevin Cummings wrote:
> <ant antfile="util.xml" target="prepare" />
>
> or
>
> <ant antfile="util.xml"/>
>
> At 04:52 PM 4/30/2001 -0400, you wrote:
> >What's the best way to invoke a task from another task?
> >
> >For instance, I'm trying to write a task to search for build files
> >further down in the build tree and invoke the ANT task on it once
it's
> >found.
> >
> >-Jeff