DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23935>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23935

Timeout on <junit> task -> no ant properties in custom resultformatter

           Summary: Timeout on <junit> task -> no ant properties in custom
                    resultformatter
           Product: Ant
           Version: 1.6Beta
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


<junit fork="yes" timeout="1">
  [...]
  <formatter classname="org.example.MyResultFormatter"/>
  [...]
</junit>

---------------------------------

package org.example;

public class MyResultFormatter implements JUnitResultFormatter {
  [...]
  public void startTestSuite(JUnitTest suite) throws BuildException {
    //Get the ant properties
    Properties antProperties = suite.getProperties();
    String foo = antProperties.getProperty("foo");
    [...]
  }
  [...]
}

Results in a NullPointerException.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to