public void load( InputStream inputStream, Hashtable properties )
throws NPandayRepositoryException
{
AssemblyPluginXpp3Reader xpp3Reader = new AssemblyPluginXpp3Reader();
Reader reader = new InputStreamReader( inputStream );
AssemblyPluginsModel plugins = null;
try
{
plugins = xpp3Reader.read( reader );
}
catch( IOException e )
{
throw new NPandayRepositoryException( "NPANDAY-021-000: An error occurred while reading executable-plugins.xml", e );
}
catch ( XmlPullParserException e )
{
throw new NPandayRepositoryException( "NPANDAY-021-001: Could not read plugins-compiler.xml", e );
}
assemblyPlugins = plugins.getAssemblyPlugins();
Set languages = getAssemblyPluginLanguages();
if ( languages.size() < assemblyPlugins.size() )
{
throw new NPandayRepositoryException(
"NPANDAY-021-002: Duplicate language entries in the assembly-plugins.xml: Total Language Count = " +