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/sitraka CovReport.java Triggers.java XMLReport.java
Date Tue, 08 Jan 2002 23:57:12 GMT
sbailliez    02/01/08 15:57:12

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/sitraka
                        CovReport.java Triggers.java XMLReport.java
  Log:
  Code layout only.
  
  Revision  Changes    Path
  1.6       +4 -3      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java
  
  Index: CovReport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/CovReport.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CovReport.java	1 Dec 2001 00:00:46 -0000	1.5
  +++ CovReport.java	8 Jan 2002 23:57:12 -0000	1.6
  @@ -65,6 +65,8 @@
   import javax.xml.transform.dom.DOMSource;
   import javax.xml.transform.stream.StreamResult;
   
  +import org.w3c.dom.Document;
  +
   import org.apache.tools.ant.BuildException;
   import org.apache.tools.ant.Project;
   import org.apache.tools.ant.Task;
  @@ -73,7 +75,6 @@
   import org.apache.tools.ant.types.Commandline;
   import org.apache.tools.ant.types.EnumeratedAttribute;
   import org.apache.tools.ant.types.Path;
  -import org.w3c.dom.Document;
   
   
   /**
  @@ -131,7 +132,7 @@
         /*
   
         /** coverage home,  mandatory */
  -            private File home = null;
  +    private File home = null;
   
       /** format of generated report, optional */
       private String format = null;
  @@ -227,7 +228,7 @@
       }
   
       //@todo to remove
  -            public Path createCoveragepath() {
  +    public Path createCoveragepath() {
           if (coveragePath == null) {
               coveragePath = new Path(project);
           }
  
  
  
  1.3       +2 -2      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/Triggers.java
  
  Index: Triggers.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/Triggers.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Triggers.java	18 Nov 2001 11:41:06 -0000	1.2
  +++ Triggers.java	8 Jan 2002 23:57:12 -0000	1.3
  @@ -77,7 +77,7 @@
       }
   
       // -jp_trigger=ClassName.*():E:S,ClassName.MethodName():X:X
  -            public String toString() {
  +    public String toString() {
           StringBuffer buf = new StringBuffer();
           final int size = triggers.size();
           for (int i = 0; i < size; i++) {
  @@ -119,7 +119,7 @@
           }
   
           // return <name>:<event>:<action>[:param]
  -                public String toString() {
  +        public String toString() {
               StringBuffer buf = new StringBuffer();
               buf.append(name).append(":"); //@todo name must not be null, check for it
               buf.append(eventMap.get(event)).append(":");
  
  
  
  1.9       +7 -6      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java
  
  Index: XMLReport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/sitraka/XMLReport.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- XMLReport.java	1 Dec 2001 00:00:46 -0000	1.8
  +++ XMLReport.java	8 Jan 2002 23:57:12 -0000	1.9
  @@ -62,17 +62,18 @@
   import javax.xml.parsers.DocumentBuilder;
   import javax.xml.parsers.DocumentBuilderFactory;
   
  +import org.w3c.dom.Document;
  +import org.w3c.dom.Element;
  +import org.w3c.dom.Node;
  +import org.w3c.dom.NodeList;
  +import org.xml.sax.InputSource;
  +
   import org.apache.tools.ant.Project;
   import org.apache.tools.ant.Task;
   import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassFile;
   import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.ClassPathLoader;
   import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.MethodInfo;
   import org.apache.tools.ant.taskdefs.optional.sitraka.bytecode.Utils;
  -import org.w3c.dom.Document;
  -import org.w3c.dom.Element;
  -import org.w3c.dom.Node;
  -import org.w3c.dom.NodeList;
  -import org.xml.sax.InputSource;
   
   /**
    * Little hack to process XML report from JProbe. It will fix
  @@ -325,7 +326,7 @@
           Element classElem = report.createElement("class");
           classElem.setAttribute("name", classFile.getName());
           // source file possibly does not exist in the bytecode
  -        if ( null != classFile.getSourceFile() ){
  +        if (null != classFile.getSourceFile()) {
               classElem.setAttribute("source", classFile.getSourceFile());
           }
           // create the cov.data elem
  
  
  

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