System.out.println( "IconSets: " + iconSets.size() );
System.out.println( "Controllers: " + controllers.size() );
System.out.println( "Views: " + views.size() );
final Index index = new Index( "sys_compiled_views", order, Index.KT_STRING, true, false );
final Store store = Store.get( "sys_compiled_views", 1 );
index.setRecordStore( store );
if( listBrowser != null && listBrowser.equalsIgnoreCase( "native" ) )
{
try
{
index.insertObject( "listBrowserMode", "native" );
}
catch( Exception e )
{
throw new ViewCompilerException( e );
}
}
for( final Iterator i = controllers.values().iterator(); i.hasNext(); )
{
final Controller controller = (Controller) i.next();
controller.store( index );
}
for( final Iterator i = iconSets.values().iterator(); i.hasNext(); )
{
final IconSet iconSet = (IconSet) i.next();
iconSet.store( index );
}
for( final Iterator i = views.values().iterator(); i.hasNext(); )
{
final View view = (View) i.next();
view.store( index );
}
FileOutputStream fos = null;
try
{
System.out.println( "Index size: " + store.getSize() + " bytes" );
fos = new FileOutputStream( output );
writeIndex( index, fos );
}
catch( Exception e )
{