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 | * 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. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * 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. | * 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 duncan@x180.com | ||||
| * @author rubys@us.ibm.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 { | public class Exec extends Task { | ||||
| private String os; | private String os; | ||||
| @@ -84,6 +88,12 @@ public class Exec extends Task { | |||||
| private final static int BUFFER_SIZE = 512; | 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 { | public void execute() throws BuildException { | ||||
| run(command); | run(command); | ||||
| } | } | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * 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. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * 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; | 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 | * @author skanthak@muehlheim.de | ||||
| * @deprecated merged into the class Javac. | * @deprecated merged into the class Javac. | ||||
| */ | */ | ||||
| public class Jikes { | public class Jikes { | ||||
| protected JikesOutputParser jop; | protected JikesOutputParser jop; | ||||
| protected String command; | protected String command; | ||||
| protected Project project; | protected Project project; | ||||
| @@ -80,6 +86,11 @@ public class Jikes { | |||||
| */ | */ | ||||
| protected Jikes(JikesOutputParser jop,String command, Project project) { | protected Jikes(JikesOutputParser jop,String command, Project project) { | ||||
| super(); | 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.jop = jop; | ||||
| this.command = command; | this.command = command; | ||||
| this.project = project; | this.project = project; | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * 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. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -67,8 +67,10 @@ import java.io.InputStreamReader; | |||||
| * passes errors and warnings | * passes errors and warnings | ||||
| * into the right logging channels of Project. | * 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 | * @author skanthak@muehlheim.de | ||||
| * @deprecated use Jikes' exit value to detect compilation failure. | * @deprecated use Jikes' exit value to detect compilation failure. | ||||
| */ | */ | ||||
| @@ -116,6 +118,11 @@ public class JikesOutputParser implements ExecuteStreamHandler { | |||||
| */ | */ | ||||
| protected JikesOutputParser(Task task, boolean emacsMode) { | protected JikesOutputParser(Task task, boolean emacsMode) { | ||||
| super(); | 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.task = task; | ||||
| this.emacsMode = emacsMode; | this.emacsMode = emacsMode; | ||||
| } | } | ||||
| @@ -1,7 +1,7 @@ | |||||
| /* | /* | ||||
| * The Apache Software License, Version 1.1 | * 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. | * reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| @@ -67,6 +67,10 @@ import java.io.IOException; | |||||
| * logged with "info" priority: | * logged with "info" priority: | ||||
| * <pre>System.setOut(new PrintStream(new TaskOutputStream(project, Project.MSG_INFO)));</pre> | * <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) | * @author James Duncan Davidson (duncan@x180.com) | ||||
| * @deprecated use LogOutputStream instead. | * @deprecated use LogOutputStream instead. | ||||
| */ | */ | ||||
| @@ -83,6 +87,10 @@ public class TaskOutputStream extends OutputStream { | |||||
| */ | */ | ||||
| TaskOutputStream(Task task, int msgOutputLevel) { | 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.task = task; | ||||
| this.msgOutputLevel = msgOutputLevel; | this.msgOutputLevel = msgOutputLevel; | ||||