ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs Exec.java Jikes.java JikesOutputParser.java TaskOutputStream.java
Date Thu, 10 Jan 2002 15:34:21 GMT
bodewig     02/01/10 07:34:21

  Modified:    src/main/org/apache/tools/ant/taskdefs Exec.java Jikes.java
                        JikesOutputParser.java TaskOutputStream.java
  Log:
  We don't like our old execution framework any longer.
  
  Revision  Changes    Path
  1.24      +13 -3     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Exec.java
  
  Index: Exec.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Exec.java,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- Exec.java	10 Jan 2002 13:59:31 -0000	1.23
  +++ Exec.java	10 Jan 2002 15:34:21 -0000	1.24
  @@ -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 @@
   /**
    * 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 &lt;exec&gt; 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;
  @@ -83,6 +87,12 @@
       private boolean failOnError = false;
   
       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.10      +14 -3     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Jikes.java
  
  Index: Jikes.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Jikes.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Jikes.java	28 Oct 2001 21:26:29 -0000	1.9
  +++ Jikes.java	10 Jan 2002 15:34:21 -0000	1.10
  @@ -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 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 @@
        */
       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.10      +10 -3     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java
  
  Index: JikesOutputParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/JikesOutputParser.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- JikesOutputParser.java	8 Jan 2002 22:30:32 -0000	1.9
  +++ JikesOutputParser.java	10 Jan 2002 15:34:21 -0000	1.10
  @@ -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 @@
    * 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 @@
        */
       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       +9 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/TaskOutputStream.java
  
  Index: TaskOutputStream.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/TaskOutputStream.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- TaskOutputStream.java	10 Jan 2002 13:59:32 -0000	1.6
  +++ TaskOutputStream.java	10 Jan 2002 15:34:21 -0000	1.7
  @@ -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 @@
    * 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 @@
        */
   
       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;
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message