• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java IArtifactKey类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.eclipse.equinox.p2.metadata.IArtifactKey的典型用法代码示例。如果您正苦于以下问题:Java IArtifactKey类的具体用法?Java IArtifactKey怎么用?Java IArtifactKey使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

IArtifactKey类属于org.eclipse.equinox.p2.metadata包,在下文中一共展示了IArtifactKey类的26个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: findSources

点赞 3

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
public IPath findSources(IArtifactKey artifactKey, IProgressMonitor monitor) {
  if (artifactKey == null) {
    return null;
  }
  if (monitor == null) {
    monitor = new NullProgressMonitor();
  }
  IArtifactKey sourceKey = BundleUtil.toSourceKey(artifactKey);

  for (Path cacheLocation : SourceLookupPreferences.getInstance().getCacheLocations()) {
    if (monitor.isCanceled()) {
      break;
    }
    IPath localCache = getLocalSourcePathIfExists(cacheLocation, sourceKey);
    if (localCache != null) {
      return localCache;
    }
  }
  return null;
}
 

开发者ID:fbricon,
项目名称:pde.source.lookup,
代码行数:21,
代码来源:CachedSourceLocator.java

示例2: findSourcesInMavenRepo

点赞 3

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
public IPath findSourcesInMavenRepo(File jar, IProgressMonitor monitor) {
  GAV gav = getGAV(jar);
  if (gav != null) {
    String fileName = gav.artifactId + "-" + gav.version + "-sources.jar";
    Path sourcePath = M2_REPO
        .resolve(Paths.get(gav.groupId.replace(".", "/"), gav.artifactId, gav.version, fileName));

    File sourceJar = sourcePath.toFile();
    if (sourceJar.exists() && sourceJar.lastModified() >= jar.lastModified()) {
      IArtifactKey ak = BundleUtil.getArtifactKey(jar);
      if (ak != null) {
        // if snapshot bundle is found, ensure this is the exact version
        IArtifactKey sak = BundleUtil.getArtifactKey(sourceJar);
        if (sak == null || !Objects.equals(sak.getVersion(), ak.getVersion())) {
          return null;
        }
      }
      return new org.eclipse.core.runtime.Path(sourcePath.toString());
    }
  }
  return null;
}
 

开发者ID:fbricon,
项目名称:pde.source.lookup,
代码行数:23,
代码来源:CachedSourceLocator.java

示例3: getArtifactKey

点赞 3

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
public static IArtifactKey getArtifactKey(File file) {
  if (file == null || !file.exists()) {
    return null;
  }
  String id = null;
  String version = null;
  try {
    Dictionary<String, String> manifest = BundlesAction.loadManifest(file);
    if (manifest != null) {
      id = ManifestElement.parseHeader("Bundle-SymbolicName",
          manifest.get("Bundle-SymbolicName"))
          [0].getValue();
      version = manifest.get("Bundle-Version");
    }
  } catch (Exception e) {
    return null;
  }

  if (StringUtils.isNotBlank(id) && StringUtils.isNotBlank(version)) {
    return BundlesAction.createBundleArtifactKey(id, version);
  }
  return null;
}
 

开发者ID:fbricon,
项目名称:pde.source.lookup,
代码行数:24,
代码来源:BundleUtil.java

示例4: fetchArtifact

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
private void fetchArtifact ( final IArtifactKey art, final IProgressMonitor pm, final Path targetFile ) throws IOException
{
    try ( OutputStream output = Files.newOutputStream ( targetFile ) )
    {
        final IArtifactDescriptor desc = this.artRepo.createArtifactDescriptor ( art );
        this.artRepo.getArtifact ( desc, output, pm );
    }
}
 

开发者ID:eclipse,
项目名称:neoscada,
代码行数:9,
代码来源:Processor.java

示例5: findArtifact

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
private IArtifactKey findArtifact ( final IInstallableUnit iu )
{
    for ( final IArtifactKey key : iu.getArtifacts () )
    {
        if ( "osgi.bundle".equals ( key.getClassifier () ) )
        {
            return key;
        }
    }
    return null;
}
 

开发者ID:eclipse,
项目名称:neoscada,
代码行数:12,
代码来源:Processor.java

示例6: toSourceKey

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
public static IArtifactKey toSourceKey(IArtifactKey key) {
  if (key == null) {
    return null;
  }
  String name = key.getId();
  if (name.endsWith(".source")) {
    return key;
  }
  return BundlesAction.createBundleArtifactKey(name + ".source", key.getVersion().toString());
}
 

开发者ID:fbricon,
项目名称:pde.source.lookup,
代码行数:11,
代码来源:BundleUtil.java

示例7: saveArtifact

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
private IPath saveArtifact(IArtifactRepository artifactRepo, IArtifactDescriptor artifactDescriptor, Path cacheFolder,
    IProgressMonitor monitor) throws IOException {
  Files.createDirectories(cacheFolder);
  IArtifactKey artifactKey = artifactDescriptor.getArtifactKey();
  Path sourcePath = getLocalSourcePath(cacheFolder, artifactKey);
  if (!Files.exists(sourcePath)) {
    File sourceFile = Files.createFile(sourcePath).toFile();
    try (FileOutputStream stream = new FileOutputStream(sourceFile)) {
      artifactRepo.getArtifact(artifactDescriptor, stream, monitor);
    }
  }
  return getLocalSourcePathIfExists(cacheFolder, artifactKey);
}
 

开发者ID:fbricon,
项目名称:pde.source.lookup,
代码行数:14,
代码来源:P2SourceLocator.java

示例8: getDownloadSize

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Mentor Graphics: Returns the download size of the mirror.
 * 
 * @return Mirror size in bytes.
 */
public long getDownloadSize() {
	long size = 0;
	
	Iterator<IArtifactKey> keys = null;
	if (keysToMirror != null) {
		keys = keysToMirror.iterator();
	}
	else {
		IQueryResult<IArtifactKey> result = source.query(ArtifactKeyQuery.ALL_KEYS, null);
		keys = result.iterator();
	}

	while (keys.hasNext()) {
		IArtifactKey key = keys.next();
		IArtifactDescriptor[] descriptors = source.getArtifactDescriptors(key);
		
		for (int j = 0; j < descriptors.length; j++) {
			String downloadSize = descriptors[j].getProperty(IArtifactDescriptor.DOWNLOAD_SIZE);
			if (downloadSize != null) {
				size += Long.parseLong(downloadSize);
			}
		}
	}
	
	return size;
}
 

开发者ID:MentorEmbedded,
项目名称:p2-installer,
代码行数:32,
代码来源:InstallerMirroring.java

示例9: getMirroring

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * This method is overridden to use a special InstallerMirroring class instead of the normal P2 Mirroring class
 * so that progress reporting can be provided and so the operation can be cancelled.
 * 
 * @see org.eclipse.equinox.p2.internal.repository.tools.MirrorApplication#getMirroring
 */
@Override
protected Mirroring getMirroring(IQueryable<IInstallableUnit> slice, IProgressMonitor monitor) {
	// Obtain ArtifactKeys from IUs
	IQueryResult<IInstallableUnit> ius = slice.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor());
	boolean iusSpecified = !ius.isEmpty(); // call before ius.iterator() to avoid bug 420318
	ArrayList<IArtifactKey> keys = new ArrayList<IArtifactKey>();
	for (Iterator<IInstallableUnit> iterator = ius.iterator(); iterator.hasNext();) {
		IInstallableUnit iu = iterator.next();
		keys.addAll(iu.getArtifacts());
	}

	InstallerMirroring mirror = new InstallerMirroring(getCompositeArtifactRepository(), destinationArtifactRepository, true/*raw*/,
			getProgressMonitor(), getProgressText());
	mirror.setCompare(false);
	mirror.setComparatorId(null);
	mirror.setBaseline(null);
	mirror.setValidate(true);
	mirror.setCompareExclusions(null);
	mirror.setTransport((Transport) agent.getService(Transport.SERVICE_NAME));
	mirror.setIncludePacked(true);

	// If IUs have been specified then only they should be mirrored, otherwise mirror everything.
	if (iusSpecified)
		mirror.setArtifactKeys(keys.toArray(new IArtifactKey[keys.size()]));

	return mirror;
}
 

开发者ID:MentorEmbedded,
项目名称:p2-installer,
代码行数:34,
代码来源:InstallerMirrorApplication.java

示例10: processUnit

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
private void processUnit ( final IInstallableUnit iu, final IProgressMonitor pm ) throws Exception
{
    final IArtifactKey art = findArtifact ( iu );
    if ( art == null )
    {
        System.out.println ( "Ignore: " + iu );
        return;
    }

    System.out.println ( "IU : " + iu + " -> " + art );

    if ( ignoreMirror ( iu ) )
    {
        System.out.println ( "Action: SKIP" );
        return;
    }

    for ( final Map.Entry<String, String> entry : iu.getProperties ().entrySet () )
    {
        System.out.println ( String.format ( "\t%s -> %s", entry.getKey (), entry.getValue () ) );
    }

    final List<MavenReference> refs = this.mapping.makeReference ( iu );

    if ( refs == null )
    {
        throw new IllegalStateException ( "Exported artifact must be mappable" );
    }
    if ( refs.size () != 1 )
    {
        throw new IllegalStateException ( "Exported artifact must be mappable to exactly one Maven reference - currently: " + refs );
    }

    final MavenReference ref = refs.get ( 0 );

    System.out.println ( "POM : " + ref );

    final Path versionBase = makeVersionBase ( ref );
    Files.createDirectories ( versionBase );
    System.out.println ( "\tStoring to: " + versionBase );

    mirrorArtifact ( art, versionBase, ref, pm );

    if ( ref.getClassifier () == null )
    {
        processMainArtifact ( iu, pm, ref, versionBase );
    }

    this.mavenExports.add ( ref );
}
 

开发者ID:eclipse,
项目名称:neoscada,
代码行数:51,
代码来源:Processor.java

示例11: mirrorArtifact

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
private void mirrorArtifact ( final IArtifactKey art, final Path versionBase, final MavenReference ref, final IProgressMonitor pm ) throws Exception
{
    if ( this.dryRun )
    {
        return;
    }

    final Path jarFile = versionBase.resolve ( ref.toFileName () );
    System.out.format ( "Storing to: %s%n", jarFile );

    if ( this.scrubJars && ref.getClassifier () == null )
    {
        final Path tmp = Files.createTempFile ( null, ".jar" );
        try
        {
            fetchArtifact ( art, pm, tmp );
            try ( JarInputStream jin = new JarInputStream ( Files.newInputStream ( tmp ) );
                  JarOutputStream jout = new JarOutputStream ( Files.newOutputStream ( jarFile ), jin.getManifest () ); )
            {
                JarEntry entry;
                while ( ( entry = jin.getNextJarEntry () ) != null )
                {
                    final String name = entry.getName ();
                    if ( name.startsWith ( "META-INF/maven/" ) )
                    {
                        System.out.format ( "Scrubbing Maven information: %s%n", name );
                        continue;
                    }
                    jout.putNextEntry ( entry );
                    ByteStreams.copy ( jin, jout );
                }
            }
        }
        finally
        {
            Files.deleteIfExists ( tmp );
        }
    }
    else
    {
        fetchArtifact ( art, pm, jarFile );
    }

    makeChecksum ( "MD5", jarFile, versionBase.resolve ( ref.toFileName ( "md5" ) ) );
    makeChecksum ( "SHA1", jarFile, versionBase.resolve ( ref.toFileName ( "sha1" ) ) );
}
 

开发者ID:eclipse,
项目名称:neoscada,
代码行数:47,
代码来源:Processor.java

示例12: getLocalSourcePathIfExists

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
public static IPath getLocalSourcePathIfExists(java.nio.file.Path cacheFolder, IArtifactKey artifactKey) {
  java.nio.file.Path sourcePath = getLocalSourcePath(cacheFolder, artifactKey);
  return Files.exists(sourcePath) ? toIPath(sourcePath) : null;
}
 

开发者ID:fbricon,
项目名称:pde.source.lookup,
代码行数:5,
代码来源:BundleUtil.java

示例13: getLocalSourcePath

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
public static java.nio.file.Path getLocalSourcePath(java.nio.file.Path cacheFolder, IArtifactKey artifactKey) {
  java.nio.file.Path sourcePath = cacheFolder.resolve(artifactKey.getId() + "_" + artifactKey.getVersion() + ".jar");
  return sourcePath;
}
 

开发者ID:fbricon,
项目名称:pde.source.lookup,
代码行数:5,
代码来源:BundleUtil.java

示例14: findSources

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
@Override
public IPath findSources(File jar, IProgressMonitor monitor) {
  if (!BundleUtil.isBundle(jar)) {
    return null;
  }
  IArtifactKey artifactKey = BundleUtil.getArtifactKey(jar);
  if (artifactKey == null || blackList.contains(artifactKey.getId())) {
    return null;
  }
  IArtifactKey sourceKey = BundleUtil.toSourceKey(artifactKey);

  ProvisioningUI provisioningUI = ProvisioningUI.getDefaultUI();

  List<URI> uris = Arrays
      .asList(provisioningUI.getRepositoryTracker().getKnownRepositories(provisioningUI.getSession()));
  Collections.sort(uris);// stupid trick to make eclipse.org repos being
  // searched almost first

  Path cacheFolder = SourceLookupPreferences.getInstance().getDownloadedSourcesDirectory();
  for (URI repo : uris) {
    if (monitor.isCanceled()) {
      return null;
    }
    IArtifactRepository artifactRepo = null;
    try {
      artifactRepo = provisioningUI.loadArtifactRepository(repo, false, monitor);
    } catch (ProvisionException ignored) {
      ignored.printStackTrace();
      // local urls seem to fail
    }
    if (artifactRepo == null || !artifactRepo.contains(sourceKey)) {
      continue;
    }

    IArtifactDescriptor[] results = artifactRepo.getArtifactDescriptors(sourceKey);
    if (results.length > 0) {
      try {
        return saveArtifact(artifactRepo, results[0], cacheFolder, monitor);
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
  }
  return null;
}
 

开发者ID:fbricon,
项目名称:pde.source.lookup,
代码行数:46,
代码来源:P2SourceLocator.java

示例15: setArtifactKeys

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
public void setArtifactKeys(IArtifactKey[] keys) {
	this.keysToMirror = Arrays.asList(keys);
}
 

开发者ID:MentorEmbedded,
项目名称:p2-installer,
代码行数:4,
代码来源:InstallerMirroring.java

示例16: validateMirror

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
private IStatus validateMirror(boolean verbose) {
	MultiStatus status = new MultiStatus(Activator.ID, 0, Messages.Mirroring_ValidationError, null);

	// The keys that were mirrored in this session
	Iterator<IArtifactKey> keys = null;
	if (keysToMirror != null) {
		keys = keysToMirror.iterator();
	} else {
		IQueryResult<IArtifactKey> result = source.query(ArtifactKeyQuery.ALL_KEYS, null);
		keys = result.iterator();
	}
	while (keys.hasNext()) {
		IArtifactKey artifactKey = keys.next();
		IArtifactDescriptor[] srcDescriptors = source.getArtifactDescriptors(artifactKey);
		IArtifactDescriptor[] destDescriptors = destination.getArtifactDescriptors(artifactKey);

		Arrays.sort(srcDescriptors, new ArtifactDescriptorComparator());
		Arrays.sort(destDescriptors, new ArtifactDescriptorComparator());

		int src = 0;
		int dest = 0;
		while (src < srcDescriptors.length && dest < destDescriptors.length) {
			if (!destDescriptors[dest].equals(srcDescriptors[src])) {
				if (destDescriptors[dest].toString().compareTo((srcDescriptors[src].toString())) > 0) {
					// Missing an artifact
					if (verbose)
						System.out.println(NLS.bind(Messages.Mirroring_missingDescriptor, srcDescriptors[src]));
					status.add(new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.Mirroring_missingDescriptor, srcDescriptors[src++])));
				} else {
					// Its okay if there are extra descriptors in the destination
					dest++;
				}
			} else {
				// check properties for differences
				Map<String, String> destMap = destDescriptors[dest].getProperties();
				Map<String, String> srcProperties = null;
				if (baseline != null) {
					IArtifactDescriptor baselineDescriptor = getBaselineDescriptor(destDescriptors[dest]);
					if (baselineDescriptor != null)
						srcProperties = baselineDescriptor.getProperties();
				}
				// Baseline not set, or could not find descriptor so we'll use the source descriptor
				if (srcProperties == null)
					srcProperties = srcDescriptors[src].getProperties();

				// Cycle through properties of the originating descriptor & compare
				for (String key : srcProperties.keySet()) {
					if (!srcProperties.get(key).equals(destMap.get(key))) {
						if (verbose)
							System.out.println(NLS.bind(Messages.Mirroring_differentDescriptorProperty, new Object[] {destDescriptors[dest], key, srcProperties.get(key), destMap.get(key)}));
						status.add(new Status(IStatus.WARNING, Activator.ID, NLS.bind(Messages.Mirroring_differentDescriptorProperty, new Object[] {destDescriptors[dest], key, srcProperties.get(key), destMap.get(key)})));
					}
				}
				src++;
				dest++;
			}
		}

		// If there are still source descriptors they're missing from the destination repository 
		while (src < srcDescriptors.length) {
			if (verbose)
				System.out.println(NLS.bind(Messages.Mirroring_missingDescriptor, srcDescriptors[src]));
			status.add(new Status(IStatus.ERROR, Activator.ID, NLS.bind(Messages.Mirroring_missingDescriptor, srcDescriptors[src++])));
		}
	}

	return status;
}
 

开发者ID:MentorEmbedded,
项目名称:p2-installer,
代码行数:69,
代码来源:InstallerMirroring.java

示例17: loadWSO2FeaturesInRepo

点赞 2

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
private Map<String, EnhancedFeature> loadWSO2FeaturesInRepo(IArtifactRepository artifactRepository,
		IQueryResult<IInstallableUnit> allAvailableIUs, IProgressMonitor monitor)
		throws ProvisionException, URISyntaxException, IOException {
	if (monitor == null) {
		monitor = new NullProgressMonitor();
	}
	SubMonitor progress = SubMonitor.convert(monitor, Messages.UpdateManager_15, 10);

	String tmpRoot = System.getProperty(JAVA_IO_TMPDIR) + File.separator + DEVS_UPDATER_TMP;

	Collection<IInstallableUnit> wso2FeatureJars = filterInstallableUnits(WSO2_FEATURE_PREFIX,
			FEATURE_JAR_IU_ID_SFX, allAvailableIUs, progress.newChild(1));

	Map<String, EnhancedFeature> loadedFeatureMap = new HashMap<>();

	for (IInstallableUnit iu : wso2FeatureJars) {
		SubMonitor downloadProgress = SubMonitor.convert(progress, Messages.UpdateManager_16,
				wso2FeatureJars.size() * 2);
		Collection<IArtifactKey> artifacts = iu.getArtifacts();
		// ideally there should be only one artifact in a feature.jar iu
		for (IArtifactKey iArtifactKey : artifacts) {
			IArtifactDescriptor[] artifactDescriptors = artifactRepository.getArtifactDescriptors(iArtifactKey);
			File featureCacheRoot = new File(tmpRoot, iu.getId() + File.separator + iu.getVersion().toString());
			File cachedFeatureDir = new File(featureCacheRoot, FEATURE_JAR_EXTRCT_FOLDER);

			if (cachedFeatureDir.exists() && cachedFeatureDir.isDirectory()) {
				downloadProgress.worked(2);
			} else {
				featureCacheRoot.mkdirs();
				File jarFile = new File(featureCacheRoot, iu.getId());
				try {
					if (jarFile.exists()) {
						// something is wrong with the file
						// if it is there without the cache dir.
						jarFile.delete();
					}
					FileOutputStream fop = new FileOutputStream(jarFile);
					// jar iu only contains a single artifact. hence [0]
					artifactRepository.getArtifact(artifactDescriptors[0], fop, downloadProgress.newChild(1));
					cachedFeatureDir.mkdirs();
					extractJar(jarFile, cachedFeatureDir);
					downloadProgress.worked(1);
				} catch (IOException e) {
					throw new IOException(Messages.UpdateManager_17, e);
				}
			}
			EnhancedFeature feature = readEnhancedMetadata(iu, cachedFeatureDir);
			loadedFeatureMap.put(feature.getId(), feature);
		}
	}
	return loadedFeatureMap;
}
 

开发者ID:wso2,
项目名称:developer-studio,
代码行数:53,
代码来源:UpdateManager.java

示例18: createMirrorRequest

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Return a new request to mirror the given artifact into the destination repository.
 * @param key the artifact to mirror
 * @param destination the destination where the artifact will be mirrored
 * @param destinationDescriptorProperties additional properties for use in creating the repository's ArtifactDescriptor, 
 * or <code>null</code> to indicate no additional properties are needed
 * @param destinationRepositoryProperties additional repository specific properties for use in creating the repositor's ArtifactDescriptor,
 * , or <code>null</code> to indicate no additional properties are needed
 * @return the newly created request object
 */
public IArtifactRequest createMirrorRequest(IArtifactKey key, IArtifactRepository destination, Map<String, String> destinationDescriptorProperties, Map<String, String> destinationRepositoryProperties);
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:12,
代码来源:IArtifactRepositoryManager.java

示例19: getArtifactKey

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Return the key for the artifact described by this descriptor.
 * @return the key associated with this descriptor
 */
public abstract IArtifactKey getArtifactKey();
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:6,
代码来源:IArtifactDescriptor.java

示例20: getArtifactKey

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Returns the key for the artifact that is being requested
 * 
 * @return The requested artifact key
 */
public IArtifactKey getArtifactKey();
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:7,
代码来源:IArtifactRequest.java

示例21: createArtifactDescriptor

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Create an instance of {@link IArtifactDescriptor} based on the given key
 * @param key {@link IArtifactKey}
 * @return a new instanceof of IArtifactDescriptor
 */
public IArtifactDescriptor createArtifactDescriptor(IArtifactKey key);
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:7,
代码来源:IArtifactRepository.java

示例22: createArtifactKey

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Create an instance of {@link IArtifactKey}
 * @param classifier
 * @param id
 * @param version
 * @return a new IArtifactKey
 */
public IArtifactKey createArtifactKey(String classifier, String id, Version version);
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:9,
代码来源:IArtifactRepository.java

示例23: contains

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Returns true if this repository contains the given artifact key.
 * @param key the key to query
 * @return true if the given key is already in this repository
 */
public boolean contains(IArtifactKey key);
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:7,
代码来源:IArtifactRepository.java

示例24: getArtifactDescriptors

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Return the set of artifact descriptors describing the ways that this repository
 * can supply the artifact associated with the given artifact key
 * @param key the artifact key to lookup
 * @return the descriptors associated with the given key
 */
public IArtifactDescriptor[] getArtifactDescriptors(IArtifactKey key);
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:8,
代码来源:IArtifactRepository.java

示例25: removeDescriptor

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Remove the given key and all related content and descriptors from this repository.
 * @param key the key to remove.
 * @deprecated See {@link #removeDescriptor(IArtifactKey, IProgressMonitor)}
 */
public void removeDescriptor(IArtifactKey key);
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:7,
代码来源:IArtifactRepository.java

示例26: removeDescriptors

点赞 1

import org.eclipse.equinox.p2.metadata.IArtifactKey; //导入依赖的package包/类
/**
 * Remove the given list of keys and all related content and descriptors from this
 * repository.
 * @param keys
 * @since 2.1
 * @deprecated See {@link #removeDescriptors(IArtifactKey[], IProgressMonitor)}
 */
public void removeDescriptors(IArtifactKey[] keys);
 

开发者ID:digimead,
项目名称:sbt-osgi-manager,
代码行数:9,
代码来源:IArtifactRepository.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)