Browse Source

deprecate .NET tasks

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@434500 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 19 years ago
parent
commit
bd6384b62c
8 changed files with 25 additions and 4 deletions
  1. +3
    -0
      WHATSNEW
  2. +5
    -0
      docs/manual/OptionalTasks/dotnet.html
  3. +1
    -1
      docs/manual/optionaltasklist.html
  4. +4
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java
  5. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java
  6. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ildasm.java
  7. +3
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/ImportTypelib.java
  8. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/optional/dotnet/WsdlToDotnet.java

+ 3
- 0
WHATSNEW View File

@@ -77,6 +77,9 @@ Changes that could break older environments:
affect programs/scripts that called the launcher and which did not want to
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:
-----------



+ 5
- 0
docs/manual/OptionalTasks/dotnet.html View File

@@ -8,6 +8,11 @@
<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
continues to be expanded based on user demand. Users writing nothing but
a .NET application, may want to look at the .NET-based


+ 1
- 1
docs/manual/optionaltasklist.html View File

@@ -16,7 +16,7 @@
<a href="conceptstypeslist.html" target="navFrame">Concepts and Types</a><br>

<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/attrib.html">Attrib</a><br>
<a href="OptionalTasks/cab.html">Cab</a><br>


+ 4
- 0
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/DotnetCompile.java View File

@@ -809,6 +809,10 @@ public abstract class DotnetCompile
*/
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();
NetCommand command = createNetCommand();
//set up response file options


+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java View File

@@ -456,6 +456,9 @@ public class Ilasm
*/
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);
NetCommand command = buildIlasmCommand();

addFilesAndExecute(command, false);


+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ildasm.java View File

@@ -345,6 +345,9 @@ public class Ildasm extends Task {
* @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();
if (!isDisassemblyNeeded()) {
return;


+ 3
- 0
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/ImportTypelib.java View File

@@ -184,6 +184,9 @@ public class ImportTypelib extends Task {
* @exception BuildException if something goes wrong with the build
*/
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();
log("Importing typelib " + srcFile
+ " to assembly " + destFile


+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/optional/dotnet/WsdlToDotnet.java View File

@@ -276,9 +276,9 @@ public class WsdlToDotnet extends Task {
*/
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);
}
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) {
compiler = Compiler.createDefaultCompiler();


Loading…
Cancel
Save