Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 27931 invoked from network); 8 Feb 2007 15:25:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2007 15:25:10 -0000 Received: (qmail 75371 invoked by uid 500); 8 Feb 2007 15:25:12 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75225 invoked by uid 500); 8 Feb 2007 15:25:11 -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 75214 invoked by uid 99); 8 Feb 2007 15:25:11 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 07:25:11 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [209.191.106.51] (HELO web39705.mail.mud.yahoo.com) (209.191.106.51) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 08 Feb 2007 07:25:00 -0800 Received: (qmail 14208 invoked by uid 60001); 8 Feb 2007 15:24:40 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=OB3zjHvlQNKIt/X9VrtPMahYCRwzrqIQTXFWP6seuUYXhsKs3izkkXEPn2Qc4PlDo6Gnv7Q6nc2YCdOsOCBEnvsvylrQdLcJgUh50wLqJEA9mdW5G8W6V2pb3PsjXSZaCe+7v1z4mbpQ7IU+GUOKK1LeIP6QgKBWIzKnaB6Z+WU=; X-YMail-OSG: rQrI3t4VM1mZkWCfPeS5G7vow6j669WTGGVsa0E_UqCRS2TdCHjqDoBxILCDWAcn9w-- Received: from [193.0.248.132] by web39705.mail.mud.yahoo.com via HTTP; Thu, 08 Feb 2007 07:24:39 PST Date: Thu, 8 Feb 2007 07:24:39 -0800 (PST) From: Hans Schwaebli Subject: Using SQL query result as a property, how? To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-528743469-1170948279=:13335" Content-Transfer-Encoding: 8bit Message-ID: <23039.13335.qm@web39705.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-528743469-1170948279=:13335 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I have a SQL query which returns one result like 388291. I want to use that result as a property. How can this be done in Ant? In a script language like Python (haha) this is no problem. But how to solve it with Ant? If I use the SQL-Task I only can write the result to disk. It looks like this: 78721 0 rows affected If I could return the result in a result property, it would be okay, if "0 rows affected" would not be part of it. Any solution? --------------------------------- Any questions? Get answers on any topic at Yahoo! Answers. Try it now. --0-528743469-1170948279=:13335--