Throwable localThrowable = t;
while ( localThrowable != null )
{
if ( localThrowable instanceof JellyException )
{
JellyException jellyEx = (JellyException) localThrowable;
if ( jellyEx.getCause() == null )
{
LOGGER.info( MavenUtils.getMessage( "exception.cause" ) + jellyEx.getReason() );
}
if ( displayStackTrace )
{
LOGGER.info( MavenUtils.getMessage( "build.jellyException.file", jellyEx.getFileName() ) );
LOGGER.info( MavenUtils.getMessage( "build.jellyException.element", jellyEx.getElementName() ) );
LOGGER.info( MavenUtils.getMessage( "build.jellyException.line",
Integer.toString( jellyEx.getLineNumber() ) ) );
LOGGER.info( MavenUtils.getMessage( "build.jellyException.column",
Integer.toString( jellyEx.getColumnNumber() ) ) );
}
}
else if ( localThrowable.getLocalizedMessage() != null )
LOGGER.info( MavenUtils.getMessage( "exception.cause" ) + localThrowable.getLocalizedMessage() );
else