git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@434500 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -77,6 +77,9 @@ Changes that could break older environments: | |||||
| affect programs/scripts that called the launcher and which did not want to | affect programs/scripts that called the launcher and which did not want to | ||||
| receive an error if Ant itself would not start | receive an error if Ant itself would not start | ||||
| * All .NET tasks are now deprecated in favor of the new .NET Antlib: | |||||
| http://ant.apache.org/antlibs/proper.html | |||||
| Fixed bugs: | Fixed bugs: | ||||
| ----------- | ----------- | ||||
| @@ -8,6 +8,11 @@ | |||||
| <h2>Introduction</h2> | <h2>Introduction</h2> | ||||
| <p><strong>These tasks are deprecated and will be removed in a future | |||||
| release of Ant. They are now part of the <a | |||||
| href="http://ant.apache.org/antlibs/proper.html">.NET | |||||
| Antlib</a>.</strong></p> | |||||
| Ant support for .NET goes back to before .NET was released, and | Ant support for .NET goes back to before .NET was released, and | ||||
| continues to be expanded based on user demand. Users writing nothing but | continues to be expanded based on user demand. Users writing nothing but | ||||
| a .NET application, may want to look at the .NET-based | a .NET application, may want to look at the .NET-based | ||||
| @@ -16,7 +16,7 @@ | |||||
| <a href="conceptstypeslist.html" target="navFrame">Concepts and Types</a><br> | <a href="conceptstypeslist.html" target="navFrame">Concepts and Types</a><br> | ||||
| <h3>Optional Tasks</h3> | <h3>Optional Tasks</h3> | ||||
| <a href="OptionalTasks/dotnet.html">.NET Tasks</a><br> | |||||
| <a href="OptionalTasks/dotnet.html"><i>.NET Tasks</i></a><br> | |||||
| <a href="OptionalTasks/antlr.html">ANTLR</a><br> | <a href="OptionalTasks/antlr.html">ANTLR</a><br> | ||||
| <a href="OptionalTasks/attrib.html">Attrib</a><br> | <a href="OptionalTasks/attrib.html">Attrib</a><br> | ||||
| <a href="OptionalTasks/cab.html">Cab</a><br> | <a href="OptionalTasks/cab.html">Cab</a><br> | ||||
| @@ -809,6 +809,10 @@ public abstract class DotnetCompile | |||||
| */ | */ | ||||
| public void execute() | public void execute() | ||||
| throws BuildException { | throws BuildException { | ||||
| log("This task is deprecated and will be removed in a future version\n" | |||||
| + "of Ant. It is now part of the .NET Antlib:\n" | |||||
| + "http://ant.apache.org/antlibs/proper.html", Project.MSG_ERR); | |||||
| validate(); | validate(); | ||||
| NetCommand command = createNetCommand(); | NetCommand command = createNetCommand(); | ||||
| //set up response file options | //set up response file options | ||||
| @@ -456,6 +456,9 @@ public class Ilasm | |||||
| */ | */ | ||||
| public void execute() | public void execute() | ||||
| throws BuildException { | throws BuildException { | ||||
| log("This task is deprecated and will be removed in a future version\n" | |||||
| + "of Ant. It is now part of the .NET Antlib:\n" | |||||
| + "http://ant.apache.org/antlibs/proper.html", Project.MSG_ERR); | |||||
| NetCommand command = buildIlasmCommand(); | NetCommand command = buildIlasmCommand(); | ||||
| addFilesAndExecute(command, false); | addFilesAndExecute(command, false); | ||||
| @@ -345,6 +345,9 @@ public class Ildasm extends Task { | |||||
| * @throws BuildException | * @throws BuildException | ||||
| */ | */ | ||||
| public void execute() throws BuildException { | public void execute() throws BuildException { | ||||
| log("This task is deprecated and will be removed in a future version\n" | |||||
| + "of Ant. It is now part of the .NET Antlib:\n" | |||||
| + "http://ant.apache.org/antlibs/proper.html", Project.MSG_ERR); | |||||
| validate(); | validate(); | ||||
| if (!isDisassemblyNeeded()) { | if (!isDisassemblyNeeded()) { | ||||
| return; | return; | ||||
| @@ -184,6 +184,9 @@ public class ImportTypelib extends Task { | |||||
| * @exception BuildException if something goes wrong with the build | * @exception BuildException if something goes wrong with the build | ||||
| */ | */ | ||||
| public void execute() throws BuildException { | public void execute() throws BuildException { | ||||
| if ("WsdlToDotnet".equals(getTaskType())) { | |||||
| log("Warning: the task name <WsdlToDotnet> is deprecated. Use <wsdltodotnet> (all lowercase) instead.", Project.MSG_WARN); | |||||
| } | |||||
| validate(); | validate(); | ||||
| log("Importing typelib " + srcFile | log("Importing typelib " + srcFile | ||||
| + " to assembly " + destFile | + " to assembly " + destFile | ||||
| @@ -276,9 +276,9 @@ public class WsdlToDotnet extends Task { | |||||
| */ | */ | ||||
| public void execute() | public void execute() | ||||
| throws BuildException { | throws BuildException { | ||||
| if ("WsdlToDotnet".equals(getTaskType())) { | |||||
| log("Warning: the task name <WsdlToDotnet> is deprecated. Use <wsdltodotnet> (all lowercase) instead.", Project.MSG_WARN); | |||||
| } | |||||
| log("This task is deprecated and will be removed in a future version\n" | |||||
| + "of Ant. It is now part of the .NET Antlib:\n" | |||||
| + "http://ant.apache.org/antlibs/proper.html", Project.MSG_ERR); | |||||
| if (compiler == null) { | if (compiler == null) { | ||||
| compiler = Compiler.createDefaultCompiler(); | compiler = Compiler.createDefaultCompiler(); | ||||