String solutionPath = PentahoSystem.getApplicationContext().getSolutionPath( DEFAULT_CONTENT_FOLDER );
File directory = new File( solutionPath );
// Instantiate the importer
IPlatformImporter importer = PentahoSystem.get( IPlatformImporter.class );
ArchiveLoader archiveLoader = new ArchiveLoader( importer );
archiveLoader.loadAll( directory, ArchiveLoader.ZIPS_FILTER );
return null;
}
} );
} catch ( Exception e ) {
Logger.error( this.getClass().getName(), e.getMessage() );