ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r561055 - in /ant/core/branches/ANT_17_BRANCH: WHATSNEW src/main/org/apache/tools/ant/helper/ProjectHelper2.java
Date Mon, 30 Jul 2007 17:27:59 GMT
Author: peterreilly
Date: Mon Jul 30 10:27:58 2007
New Revision: 561055

URL: http://svn.apache.org/viewvc?view=rev&rev=561055
Log:
marking ant-type as deprecated

Modified:
    ant/core/branches/ANT_17_BRANCH/WHATSNEW
    ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/helper/ProjectHelper2.java

Modified: ant/core/branches/ANT_17_BRANCH/WHATSNEW
URL: http://svn.apache.org/viewvc/ant/core/branches/ANT_17_BRANCH/WHATSNEW?view=diff&rev=561055&r1=561054&r2=561055
==============================================================================
--- ant/core/branches/ANT_17_BRANCH/WHATSNEW (original)
+++ ant/core/branches/ANT_17_BRANCH/WHATSNEW Mon Jul 30 10:27:58 2007
@@ -19,6 +19,9 @@
 * <java> with fork now returns gives -1 instead of 0 as result when failonerror
   is false and some exception (including timeout) occurs. Br 42377. 
 
+* ant-type attribute has been marked as deprecated and a warning has been
+  issued if it is encountered in the build file.
+
 Fixed bugs:
 -----------
 * Regression: Locator fails with URI encoding problem when spaces in path

Modified: ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
URL: http://svn.apache.org/viewvc/ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/helper/ProjectHelper2.java?view=diff&rev=561055&r1=561054&r2=561055
==============================================================================
--- ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
(original)
+++ ant/core/branches/ANT_17_BRANCH/src/main/org/apache/tools/ant/helper/ProjectHelper2.java
Mon Jul 30 10:27:58 2007
@@ -27,6 +27,7 @@
 import org.apache.tools.ant.Task;
 import org.apache.tools.ant.UnknownElement;
 import org.apache.tools.ant.util.FileUtils;
+import org.apache.tools.ant.util.StringUtils;
 import org.apache.tools.ant.util.JAXPUtils;
 import org.xml.sax.Attributes;
 import org.xml.sax.InputSource;
@@ -973,6 +974,13 @@
                 // and convert from qualified name to uri/name
                 if (ANT_TYPE.equals(name) || (ANT_CORE_URI.equals(attrUri)
                         && ANT_TYPE.equals(attrs.getLocalName(i)))) {
+                    context.getProject().log(
+                        "WARNING: "
+                        + "the ant-type mechanism has been deprecated"
+                        + StringUtils.LINE_SEP
+                        + "         and"
+                        + " will not be available in Ant 1.8.0 or higher",
+                        Project.MSG_WARN);
                     name = ANT_TYPE;
                     int index = value.indexOf(":");
                     if (index >= 0) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message