org.eclipse.equinox.p2.repository.metadata.IMetadataRepository Java Examples
The following examples show how to use
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Processor.java From neoscada with Eclipse Public License 1.0 | 5 votes |
private void processInternal ( final IProgressMonitor pm ) throws ProvisionException, Exception { this.output.mkdirs (); System.out.println ( "Loading metadata..." ); this.metaRepo = this.metaManager.loadRepository ( this.repositoryLocation, pm ); System.out.println ( "Loading artifacts..." ); this.artRepo = this.artManager.loadRepository ( this.repositoryLocation, pm ); System.out.println ( "done!" ); for ( final URI uri : this.validationRepositoryUris ) { System.out.format ( "Loading validation repository: %s%n", uri ); final IMetadataRepository repo = this.metaManager.loadRepository ( uri, pm ); this.validationRepositories.put ( uri, repo ); System.out.println ( "Done!" ); } final IQuery<IInstallableUnit> query = QueryUtil.createIUAnyQuery (); final IQueryResult<IInstallableUnit> result = this.metaRepo.query ( query, pm ); for ( final IInstallableUnit iu : result ) { processUnit ( iu, pm ); } writeUploadScript (); for ( final Map.Entry<MavenReference, Set<String>> entry : this.metadata.entrySet () ) { writeMetaData ( entry.getKey (), entry.getValue () ); } }
Example #2
Source File: Processor.java From neoscada with Eclipse Public License 1.0 | 5 votes |
public void process ( final IProgressMonitor pm ) throws Exception { this.output.mkdirs (); System.out.println ( "Loading metadata..." ); this.metaRepo = this.metaManager.loadRepository ( this.repositoryLocation, pm ); System.out.println ( "Loading artifacts..." ); this.artRepo = this.artManager.loadRepository ( this.repositoryLocation, pm ); System.out.println ( "done!" ); for ( final URI uri : this.validationRepositoryUris ) { System.out.format ( "Loading validation repository: %s%n", uri ); final IMetadataRepository repo = this.metaManager.loadRepository ( uri, pm ); this.validationRepositories.put ( uri, repo ); System.out.println ( "Done!" ); } final IQuery<IInstallableUnit> query = QueryUtil.createIUAnyQuery (); final IQueryResult<IInstallableUnit> result = this.metaRepo.query ( query, pm ); for ( final IInstallableUnit iu : result ) { processUnit ( iu, pm ); } writeUploadScript (); for ( final Map.Entry<MavenReference, Set<String>> entry : this.metadata.entrySet () ) { writeMetaData ( entry.getKey (), entry.getValue () ); } }