}
else if ( ManifestConfiguration.CLASSPATH_LAYOUT_TYPE_CUSTOM.equals( layoutType ) )
{
if ( layout == null )
{
throw new ManifestException( ManifestConfiguration.CLASSPATH_LAYOUT_TYPE_CUSTOM
+ " layout type was declared, but custom layout expression was not specified. Check your <archive><manifest><customLayout/> element." );
}
classpath.append( interpolator.interpolate( layout, recursionInterceptor ) );
}
else
{
throw new ManifestException( "Unknown classpath layout type: '" + layoutType
+ "'. Check your <archive><manifest><layoutType/> element." );
}
}
catch ( InterpolationException e )
{
ManifestException error = new ManifestException(
"Error interpolating artifact path for classpath entry: " + e.getMessage() );
error.initCause( e );
throw error;
}
finally
{
for ( ValueSource vs : valueSources )