Hi,

Where does maven find the icons for the surefire reports?

I see this code in m-s-r-p

    private void sinkIcon( String type, Sink sink )
    {
        sink.figure();

        if ( type.startsWith( "junit.framework" ) || "skipped".equals( type
) )
        {
            sink.figureGraphics( "images/icon_warning_sml.gif" );
        }
        else if ( type.startsWith( "success" ) )
        {
            sink.figureGraphics( "images/icon_success_sml.gif" );
        }
        else
        {
            sink.figureGraphics( "images/icon_error_sml.gif" );
        }

        sink.figure_();
    }

But I don't see the image resources anywhere...

Are these images part of the API of maven reporting (i.e. can I assume that
they will always be available with those names)

If they are part of the API of maven should we not define standard constants
in a constants class (wrapping the constants in a function call to ensure
late binding, of course, e.g.

public static final String SOMECONST =
Noop.return("images/icon_error_sml.gif");

-Stephen

Reply via email to