}
@Override
public void execute() throws BuildException
{
final SmartSpritesParameters parameters = new SmartSpritesParameters(rootDir,
cssFiles, outputDir, documentRootDir, logLevel, cssFileSuffix,
spritePngDepth, spritePngIe6, cssFileEncoding, markSpriteImages);
final FailureDetectorMessageSink failureDetectorMessageSink = new FailureDetectorMessageSink();
MessageLog log = new MessageLog(new AntLogMessageSink(),
failureDetectorMessageSink);
if (parameters.validate(log))
{
try
{
new SpriteBuilder(parameters, log).buildSprites();
}