git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270661 13f79535-47bb-0310-9956-ffa450edef68master
@@ -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. | |||
* | |||
* <p><strong>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.</strong></p> | |||
* @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); | |||
} | |||
@@ -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. | |||
* | |||
* <p><strong>As of Ant 1.2, this class is considered to be dead code | |||
* by the Ant developers and is unmaintained. Don't use | |||
* it.</strong></p> | |||
* | |||
* @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; | |||
@@ -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 | |||
* <p><strong>As of Ant 1.2, this class is considered to be dead code | |||
* by the Ant developers and is unmaintained. Don't use | |||
* it.</strong></p> | |||
* | |||
* @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; | |||
} | |||
@@ -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: | |||
* <pre>System.setOut(new PrintStream(new TaskOutputStream(project, Project.MSG_INFO)));</pre> | |||
* | |||
* <p><strong>As of Ant 1.2, this class is considered to be dead code | |||
* by the Ant developers and is unmaintained. Don't use | |||
* it.</strong></p> | |||
* | |||
* @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; | |||