ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32975] - Make XmlFormatter for junittask (optinally) lighter
Date Fri, 18 Feb 2005 18:08:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32975>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32975





------- Additional Comments From peterreilly@apache.org  2005-02-18 19:08 -------
I can think of using ant-types
  <formatter usefile="yes">
      <junit.xmlformatter verbose="yes"/>
  </formatter>

Change to Formatter.java:
    private JUnitResultFormatter  byReflection;
    public void add(JUnitResultFormatter byReflection) {
        this.byReflection = byReflection;
    }
    
    /**
     * @since Ant 1.6
     */
    JUnitResultFormatter createFormatter(ClassLoader loader)
        throws BuildException {
        JUnitResultFormatter r = byReflection;
        if (byReflection == null) {
         ....
         }
                }

        if (useFile && outFile != null) {
            try {
                out = new FileOutputStream(outFile);
            } catch (java.io.IOException e) {
                throw new BuildException(e);
            }
        }
        r.setOutput(out);
        return r;
}
* not tested completly *


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message