System.out.println();
System.out.println( "Removing build results." );
System.out.println( "============================" );
BuildResultSummary brs;
List results = client.getBuildResultsForProject( ps.getId() );
for ( Iterator i = results.iterator(); i.hasNext(); )
{
brs = (BuildResultSummary) i.next();
System.out.print( "Removing build result (" + brs.getId() + ") - " );
BuildResult br = client.getBuildResult( ps.getId(), brs.getId() );
System.out.println( ( client.removeBuildResult( br ) == 0 ? "OK" : "Error" ) );
}
System.out.println( "Done." );
System.out.println();