Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 26603 invoked from network); 24 Oct 2007 13:42:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Oct 2007 13:42:05 -0000 Received: (qmail 11402 invoked by uid 500); 24 Oct 2007 13:41:42 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 11334 invoked by uid 500); 24 Oct 2007 13:41:41 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 11193 invoked by uid 99); 24 Oct 2007 13:41:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 06:41:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of peter.kitt.reilly@gmail.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Oct 2007 13:41:45 +0000 Received: by wa-out-1112.google.com with SMTP id k22so238765waf for ; Wed, 24 Oct 2007 06:41:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=pCVZbkGk+GnZZ2UKk8v+cwrTViU55K2yok+wwKRTVSc=; b=OSu2yuJRMHhITmaA+h2XMED8VyWJqhgME671RTXw1sOlCOFXhmRuTiIhZ50mQJSTFl5pjDvjxs+7jJPfH5tSsp08vKZXQI7E5ZoWydXby7n7aWplzrg1hwHCyTMnfofSshAeASsnmc9ypIR//QwHCj9mPHaGZN1XF+D6dEeTjgs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QoenMeGzfzNerLIJEaN2S13FDKHNggjxFZrlvVCrWLcJ5eor+Qh8oEGIlOFR3TyBArQ1N8S5gzyN90mys2VJ5QWg+zVhVuOeULkQ38tmd3E7wn0MGvn8M561aNcD0qELQT+oe9xj2HiABbq0to7oE7PPGNrikVCG2zmcpJP+VLo= Received: by 10.114.110.1 with SMTP id i1mr699509wac.1193233283584; Wed, 24 Oct 2007 06:41:23 -0700 (PDT) Received: by 10.114.198.4 with HTTP; Wed, 24 Oct 2007 06:41:18 -0700 (PDT) Message-ID: Date: Wed, 24 Oct 2007 14:41:18 +0100 From: "Peter Reilly" To: "Ant Developers List" Subject: Re: svn commit: r587855 - in /ant/core/trunk: docs/manual/CoreTasks/xmlproperty.html src/main/org/apache/tools/ant/taskdefs/XmlProperty.java In-Reply-To: <20071024112604.6EE761A9832@eris.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071024112604.6EE761A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Oih! + + public String getDelimiter() { + return delimiter; + } + + public void setDelimiter(String delimiter) { + this.delimiter = delimiter; Peter On 10/24/07, jhm@apache.org wrote: > Author: jhm > Date: Wed Oct 24 04:26:02 2007 > New Revision: 587855 > > URL: http://svn.apache.org/viewvc?rev=587855&view=rev > Log: > New attribute: > > Modified: > ant/core/trunk/docs/manual/CoreTasks/xmlproperty.html > ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java > > Modified: ant/core/trunk/docs/manual/CoreTasks/xmlproperty.html > URL: http://svn.apache.org/viewvc/ant/core/trunk/docs/manual/CoreTasks/xmlproperty.html?rev=587855&r1=587854&r2=587855&view=diff > ============================================================================== > --- ant/core/trunk/docs/manual/CoreTasks/xmlproperty.html (original) > +++ ant/core/trunk/docs/manual/CoreTasks/xmlproperty.html Wed Oct 24 04:26:02 2007 > @@ -146,6 +146,11 @@ > if semanticAttributes is not set to true. > No, default is ${basedir}. > > + > + delimiter > + Delimiter for splitting multiple values.
since Ant 1.7.1 > + No, defaults to comma > + > > >

Nested Elements

> > Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java > URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java?rev=587855&r1=587854&r2=587855&view=diff > ============================================================================== > --- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java (original) > +++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/XmlProperty.java Wed Oct 24 04:26:02 2007 > @@ -183,6 +183,7 @@ > private File rootDirectory = null; > private Hashtable addedAttributes = new Hashtable(); > private XMLCatalog xmlCatalog = new XMLCatalog(); > + private String delimiter = ","; > > private static final String ID = "id"; > private static final String REF_ID = "refid"; > @@ -474,7 +475,7 @@ > // when we read them, though (instead of keeping them > // outside of the project and batch adding them at the end) > // to allow other properties to reference them. > - value = (String) addedAttributes.get(name) + "," + value; > + value = (String) addedAttributes.get(name) + getDelimiter() + value; > getProject().setProperty(name, value); > addedAttributes.put(name, value); > } else if (getProject().getProperty(name) == null) { > @@ -751,5 +752,13 @@ > */ > protected boolean supportsNonFileResources() { > return getClass().equals(XmlProperty.class); > + } > + > + public String getDelimiter() { > + return delimiter; > + } > + > + public void setDelimiter(String delimiter) { > + this.delimiter = delimiter; > } > } > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org