diff --git a/src/main/org/apache/tools/ant/taskdefs/Exec.java b/src/main/org/apache/tools/ant/taskdefs/Exec.java index 6d810fa5e..e0aa57d31 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Exec.java +++ b/src/main/org/apache/tools/ant/taskdefs/Exec.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000 The Apache Software Foundation. All rights + * Copyright (c) 2000,2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -68,11 +68,15 @@ import java.io.InputStreamReader; /** * Executes a given command if the os platform is appropriate. * + *
As of Ant 1.2, this class is no longer the + * implementation of Ant's <exec> task - it is considered to be + * dead code by the Ant developers and is unmaintained. Don't use + * it.
+ * @author duncan@x180.com * @author rubys@us.ibm.com * - * @deprecated Instead of using this class, please extend ExecTask or - * delegate to Execute. + * @deprecated delegate to {@link * org.apache.tools.ant.taskdefs.Execute Execute} instead. */ public class Exec extends Task { private String os; @@ -84,6 +88,12 @@ public class Exec extends Task { private final static int BUFFER_SIZE = 512; + public Exec() { + System.err.println("As of Ant 1.2 released in October 2000, the Exec class"); + System.err.println("is considered to be dead code by the Ant developers and is unmaintained."); + System.err.println("Don\'t use it!"); + } + public void execute() throws BuildException { run(command); } diff --git a/src/main/org/apache/tools/ant/taskdefs/Jikes.java b/src/main/org/apache/tools/ant/taskdefs/Jikes.java index 698437ba9..c7a631522 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Jikes.java +++ b/src/main/org/apache/tools/ant/taskdefs/Jikes.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000 The Apache Software Foundation. All rights + * Copyright (c) 2000,2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -63,12 +63,18 @@ import org.apache.tools.ant.BuildException; import java.util.Random; /** - * Encapsulates a Jikes compiler, by - * directly executing an external process. + * Encapsulates a Jikes compiler, by directly executing an external + * process. + * + *As of Ant 1.2, this class is considered to be dead code + * by the Ant developers and is unmaintained. Don't use + * it.
+ * * @author skanthak@muehlheim.de * @deprecated merged into the class Javac. */ public class Jikes { + protected JikesOutputParser jop; protected String command; protected Project project; @@ -80,6 +86,11 @@ public class Jikes { */ protected Jikes(JikesOutputParser jop,String command, Project project) { super(); + + System.err.println("As of Ant 1.2 released in October 2000, the Jikes class"); + System.err.println("is considered to be dead code by the Ant developers and is unmaintained."); + System.err.println("Don\'t use it!"); + this.jop = jop; this.command = command; this.project = project; diff --git a/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java b/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java index 6456d690f..196ce298b 100644 --- a/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java +++ b/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000 The Apache Software Foundation. All rights + * Copyright (c) 2000,2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -67,8 +67,10 @@ import java.io.InputStreamReader; * passes errors and warnings * into the right logging channels of Project. * - * TODO: - * Parsing could be much better + *As of Ant 1.2, this class is considered to be dead code + * by the Ant developers and is unmaintained. Don't use + * it.
+ * * @author skanthak@muehlheim.de * @deprecated use Jikes' exit value to detect compilation failure. */ @@ -116,6 +118,11 @@ public class JikesOutputParser implements ExecuteStreamHandler { */ protected JikesOutputParser(Task task, boolean emacsMode) { super(); + + System.err.println("As of Ant 1.2 released in October 2000, the JikesOutputParser class"); + System.err.println("is considered to be dead code by the Ant developers and is unmaintained."); + System.err.println("Don\'t use it!"); + this.task = task; this.emacsMode = emacsMode; } diff --git a/src/main/org/apache/tools/ant/taskdefs/TaskOutputStream.java b/src/main/org/apache/tools/ant/taskdefs/TaskOutputStream.java index 0891d243a..ea5670d11 100644 --- a/src/main/org/apache/tools/ant/taskdefs/TaskOutputStream.java +++ b/src/main/org/apache/tools/ant/taskdefs/TaskOutputStream.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000 The Apache Software Foundation. All rights + * Copyright (c) 2000,2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -67,6 +67,10 @@ import java.io.IOException; * logged with "info" priority: *System.setOut(new PrintStream(new TaskOutputStream(project, Project.MSG_INFO)));* + *
As of Ant 1.2, this class is considered to be dead code + * by the Ant developers and is unmaintained. Don't use + * it.
+ * * @author James Duncan Davidson (duncan@x180.com) * @deprecated use LogOutputStream instead. */ @@ -83,6 +87,10 @@ public class TaskOutputStream extends OutputStream { */ TaskOutputStream(Task task, int msgOutputLevel) { + System.err.println("As of Ant 1.2 released in October 2000, the TaskOutputStream class"); + System.err.println("is considered to be dead code by the Ant developers and is unmaintained."); + System.err.println("Don\'t use it!"); + this.task = task; this.msgOutputLevel = msgOutputLevel;