Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 25844 invoked by uid 500); 24 Apr 2001 07:17:37 -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 25293 invoked from network); 24 Apr 2001 07:17:34 -0000 Message-ID: <20010424071746.57732.qmail@web13406.mail.yahoo.com> Date: Tue, 24 Apr 2001 00:17:46 -0700 (PDT) From: Diane Holt Subject: Re: getting stdout from tasks To: ant-user@jakarta.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N --- Stefan Bodewig wrote: > Laramie Crocker wrote: > > > Does anyone know how to get stdout from a task (either exec or an > > extension of org.apache.tools.ant.Task) such that I can set a > > property with the output? > > Short of writing your onw task? Don't think so. > > The easiest way probably is to make the task write the output to a > file (exec has an out attribute for this) and then write a simple task > that reads this file and sets a property from it. If you're not into writing a task to do it, you could do something like: then just read today.properties in with the regular Diane ===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/