Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 58579 invoked by uid 500); 30 Apr 2001 21:49:53 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 58562 invoked from network); 30 Apr 2001 21:49:51 -0000 Message-ID: <20010430214953.42853.qmail@web13404.mail.yahoo.com> Date: Mon, 30 Apr 2001 14:49:53 -0700 (PDT) From: Diane Holt Subject: Re: Task from a task? To: ant-user@jakarta.apache.org In-Reply-To: <3AEDD08A.B0F91FE0@dteenergy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N --- Jeffrey A Kenward 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. You could use the newly submitted (but not committed) task (I picked up Chris Greenlee's updated version) -- see the ant-dev mail archives at message: http://marc.theaimsgroup.com/?l=ant-dev&m=98842104504477&w=2 It's designed to do 's, which means running a target in the current build-file, but that target could do an . For example: This will run the default target in each build.xml file in every subdirectory of the current directory. If you want to run a specific target in the sub-project build-files, include the "target" attribute in the task (include nested 's if you want to override property values in the sub-project build-files). Note: You'll need to pick up the latest Ant.java from CVS, as apparently the task hits a bug that was in the 1.3 version, which has since been fixed in CVS. Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/