Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 61048 invoked from network); 28 Sep 2006 19:23:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2006 19:23:37 -0000 Received: (qmail 55799 invoked by uid 500); 28 Sep 2006 19:23:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 55392 invoked by uid 500); 28 Sep 2006 19:23:29 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 55378 invoked by uid 99); 28 Sep 2006 19:23:29 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Sep 2006 12:23:29 -0700 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,NO_REAL_NAME Received: from [69.25.242.10] ([69.25.242.10:2042] helo=securemail.onebox.com) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id B8/DA-17533-DF02C154 for ; Thu, 28 Sep 2006 12:22:39 -0700 Received: from outgoing.onebox.com (unverified [172.21.6.73]) by securemail.onebox.com (Rockliffe SMTPRA 7.0.3) with SMTP id for ; Thu, 28 Sep 2006 15:22:00 -0400 Message-ID: From: cknell@onebox.com To: user@ant.apache.org Subject: Capture returned value from Java? Date: Thu, 28 Sep 2006 15:21:58 -0400 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I'm confused about the "outputproperty" attribute of the task. The manual says of it, "The name of a property in which the output of the command should be stored. Unless the error stream is redirected to a separate file or stream, this property will include the error output." My questions are: 1) What exactly does the "output of the command" mean? When I execute a class I am executing the class's "main" method. Of course the main signature is void, meaning that it does not return any value itself. If the main method calls a member method that does return a value (a String, for instance), is the value returned by that member method the information that is supposed to be captured in the property specified as the "outputproperty" attribute's value? 2) If that's not what it means, what exactly does it mean? I ask this because I haven't been able to figure a way of getting a value returned from a Java class into an Ant property. -- Charles Knell cknell@onebox.com - email --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org