From 8d4736cfcb8201a54c8cb7cb6d4c81e4c87c9f82 Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Wed, 25 Apr 2012 04:11:10 +0000 Subject: [PATCH] started to support loading XML files with 1.8.0 not 1.7.1. PR 53141 git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1330090 13f79535-47bb-0310-9956-ffa450edef68 --- manual/Tasks/property.html | 2 +- src/main/org/apache/tools/ant/taskdefs/Property.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manual/Tasks/property.html b/manual/Tasks/property.html index c0a3b9615..16aa06db3 100644 --- a/manual/Tasks/property.html +++ b/manual/Tasks/property.html @@ -58,7 +58,7 @@ properties. These references are resolved at the time these properties are set. This also holds for properties loaded from a property file.

A list of predefined properties can be found here.

-

Since Apache Ant 1.7.1 it is possible to load properties defined in xml +

Since Apache Ant 1.8.0 it is possible to load properties defined in xml according to Suns DTD, if Java5+ is present. For this the name of the file, resource or url has to end with .xml.

diff --git a/src/main/org/apache/tools/ant/taskdefs/Property.java b/src/main/org/apache/tools/ant/taskdefs/Property.java index 22f926c9a..30e41703b 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Property.java +++ b/src/main/org/apache/tools/ant/taskdefs/Property.java @@ -555,7 +555,7 @@ public class Property extends Task { * @param is The input stream from where to load * @param isXml true if we should try to load from xml * @throws IOException if something goes wrong - * @since 1.7.1 + * @since 1.8.0 * @see http://java.sun.com/dtd/properties.dtd * @see java.util.Properties#loadFromXML(InputStream) */