ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Reilly" <peter.kitt.rei...@gmail.com>
Subject Re: svn commit: r587855 - in /ant/core/trunk: docs/manual/CoreTasks/xmlproperty.html src/main/org/apache/tools/ant/taskdefs/XmlProperty.java
Date Wed, 24 Oct 2007 13:41:18 GMT
Oih!
+
+    public String getDelimiter() {
+        return delimiter;
+    }
+
+    public void setDelimiter(String delimiter) {
+        this.delimiter = delimiter;

Peter


On 10/24/07, jhm@apache.org <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: <xmlproperty delimiter=""/>
>
> 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 <i>semanticAttributes</i> is not set to <i>true</i>.</td>
>      <td valign="top" align="center">No, default is <i>${basedir}</i>.</td>
>    </tr>
> +  <tr>
> +    <td valign="top">delimiter</td>
> +    <td valign="top">Delimiter for splitting multiple values.<br><i>since
Ant 1.7.1</i></td>
> +    <td valign="top" align="center">No, defaults to comma</td>
> +  </tr>
>  </table>
>
>  <h3><a name="nested">Nested Elements</a></h3>
>
> 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


Mime
View raw message