ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sbaill...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/metamata AbstractMetamataTask.java
Date Sun, 28 Oct 2001 21:24:42 GMT
sbailliez    01/10/28 13:24:42

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/metamata
                        AbstractMetamataTask.java
  Log:
  Code clean up:
   - removed useless/duplicate imports
   - added explicit imports rather than *
   - changed specifiers order to be conform to JLS.
  
  Revision  Changes    Path
  1.3       +15 -5     jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/metamata/AbstractMetamataTask.java
  
  Index: AbstractMetamataTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/metamata/AbstractMetamataTask.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- AbstractMetamataTask.java	2001/08/03 14:34:07	1.2
  +++ AbstractMetamataTask.java	2001/10/28 21:24:41	1.3
  @@ -56,12 +56,22 @@
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Project;
   import org.apache.tools.ant.Task;
  -import org.apache.tools.ant.taskdefs.*;
  -import org.apache.tools.ant.types.*;
  +import org.apache.tools.ant.taskdefs.ExecuteStreamHandler;
  +import org.apache.tools.ant.taskdefs.Execute;
  +import org.apache.tools.ant.types.Path;
  +import org.apache.tools.ant.types.CommandlineJava;
  +import org.apache.tools.ant.types.Commandline;
  +import org.apache.tools.ant.types.FileSet;
   import org.apache.tools.ant.DirectoryScanner;
   
  -import java.io.*;
  -import java.util.*;
  +import java.io.File;
  +import java.io.IOException;
  +import java.io.FileWriter;
  +import java.io.PrintWriter;
  +import java.util.Hashtable;
  +import java.util.Vector;
  +import java.util.Enumeration;
  +import java.util.Random;
   
   /**
    * Somewhat abstract framework to be used for other metama 2.0 tasks.
  @@ -279,7 +289,7 @@
           }
       }
       
  -    protected final static File createTmpFile(){
  +    protected static final File createTmpFile(){
           // must be compatible with JDK 1.1 !!!!
           final long rand = (new Random(System.currentTimeMillis())).nextLong();
           File file = new File("metamata" + rand + ".tmp");
  
  
  

--
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