Tabnine Logo
IPublisherInfo.getArtifactRepository
Code IndexAdd Tabnine to your IDE (free)

How to use
getArtifactRepository
method
in
org.eclipse.equinox.p2.publisher.IPublisherInfo

Best Java code snippets using org.eclipse.equinox.p2.publisher.IPublisherInfo.getArtifactRepository (Showing top 20 results out of 315)

origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher

/**
 * Creates an artifact descriptor for the given key and path.
 * @param info the publisher info
 * @param key the key of the artifact to publish
 * @param pathOnDisk the path of the artifact on disk
 * @return a new artifact descriptor
 */
public static IArtifactDescriptor createArtifactDescriptor(IPublisherInfo info, IArtifactKey key, File pathOnDisk) {
  return createArtifactDescriptor(info, info.getArtifactRepository(), key, pathOnDisk);
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher

/**
 * Creates an artifact descriptor for the given key and path.
 * @param info the publisher info
 * @param key the key of the artifact to publish
 * @param pathOnDisk the path of the artifact on disk
 * @return a new artifact descriptor
 */
public static IArtifactDescriptor createArtifactDescriptor(IPublisherInfo info, IArtifactKey key, File pathOnDisk) {
  return createArtifactDescriptor(info, info.getArtifactRepository(), key, pathOnDisk);
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

/**
 * Creates an artifact descriptor for the given key and path.
 * @param info the publisher info
 * @param key the key of the artifact to publish
 * @param pathOnDisk the path of the artifact on disk
 * @return a new artifact descriptor
 */
public static IArtifactDescriptor createArtifactDescriptor(IPublisherInfo info, IArtifactKey key, File pathOnDisk) {
  return createArtifactDescriptor(info, info.getArtifactRepository(), key, pathOnDisk);
}
origin: org.eclipse.equinox.p2/publisher

/**
 * Creates an artifact descriptor for the given key and path.
 * @param info the publisher info
 * @param key the key of the artifact to publish
 * @param pathOnDisk the path of the artifact on disk
 * @return a new artifact descriptor
 */
public static IArtifactDescriptor createArtifactDescriptor(IPublisherInfo info, IArtifactKey key, File pathOnDisk) {
  return createArtifactDescriptor(info, info.getArtifactRepository(), key, pathOnDisk);
}
origin: org.eclipse.osgi/org.eclipse.equinox.p2.publisher.eclipse

protected void publishArtifact(IArtifactDescriptor descriptor, File base, File[] inclusions, IPublisherInfo publisherInfo) {
  IArtifactRepository destination = publisherInfo.getArtifactRepository();
  if (descriptor == null || destination == null)
    return;
  // publish the given files
  publishArtifact(descriptor, inclusions, null, publisherInfo, createRootPrefixComputer(base));
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher.eclipse

protected void publishArtifact(IArtifactDescriptor descriptor, File base, File[] inclusions, IPublisherInfo publisherInfo) {
  IArtifactRepository destination = publisherInfo.getArtifactRepository();
  if (descriptor == null || destination == null)
    return;
  // publish the given files
  publishArtifact(descriptor, inclusions, null, publisherInfo, createRootPrefixComputer(base));
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

protected void publishArtifact(IArtifactDescriptor descriptor, File base, File[] inclusions, IPublisherInfo publisherInfo) {
  IArtifactRepository destination = publisherInfo.getArtifactRepository();
  if (descriptor == null || destination == null)
    return;
  // publish the given files
  publishArtifact(descriptor, inclusions, null, publisherInfo, createRootPrefixComputer(base));
}
origin: org.eclipse.equinox.p2/updatesite

  protected Transport getTransport(IPublisherInfo info) {
    @SuppressWarnings("rawtypes")
    IRepository repo = info.getMetadataRepository();
    if (repo == null)
      repo = info.getArtifactRepository();
    if (repo == null)
      throw new IllegalStateException("The transport service can not be found."); //$NON-NLS-1$
    return (Transport) repo.getProvisioningAgent().getService(Transport.SERVICE_NAME);
  }
}
origin: org.eclipse.osgi/org.eclipse.equinox.p2.publisher.eclipse

@Override
protected void publishArtifact(IArtifactDescriptor descriptor, File jarFile, IPublisherInfo publisherInfo) {
  // no files to publish so this is done.
  if (jarFile == null || publisherInfo == null)
    return;
  // if the destination already contains the descriptor, there is nothing to do.
  IArtifactRepository destination = publisherInfo.getArtifactRepository();
  if (destination == null || destination.contains(descriptor))
    return;
  super.publishArtifact(descriptor, jarFile, publisherInfo);
  // if we are assimilating pack200 files then add the packed descriptor
  // into the repo assuming it does not already exist.
  boolean reuse = "true".equals(destination.getProperties().get(AbstractPublisherApplication.PUBLISH_PACK_FILES_AS_SIBLINGS)); //$NON-NLS-1$
  if (reuse && (publisherInfo.getArtifactOptions() & IPublisherInfo.A_PUBLISH) > 0) {
    File packFile = new Path(jarFile.getAbsolutePath()).addFileExtension("pack.gz").toFile(); //$NON-NLS-1$
    if (packFile.exists()) {
      IArtifactDescriptor ad200 = createPack200ArtifactDescriptor(descriptor.getArtifactKey(), packFile, descriptor.getProperty(IArtifactDescriptor.ARTIFACT_SIZE));
      publishArtifact(ad200, packFile, publisherInfo);
    }
  }
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher.eclipse

@Override
protected void publishArtifact(IArtifactDescriptor descriptor, File jarFile, IPublisherInfo publisherInfo) {
  // no files to publish so this is done.
  if (jarFile == null || publisherInfo == null)
    return;
  // if the destination already contains the descriptor, there is nothing to do.
  IArtifactRepository destination = publisherInfo.getArtifactRepository();
  if (destination == null || destination.contains(descriptor))
    return;
  super.publishArtifact(descriptor, jarFile, publisherInfo);
  // if we are assimilating pack200 files then add the packed descriptor
  // into the repo assuming it does not already exist.
  boolean reuse = "true".equals(destination.getProperties().get(AbstractPublisherApplication.PUBLISH_PACK_FILES_AS_SIBLINGS)); //$NON-NLS-1$
  if (reuse && (publisherInfo.getArtifactOptions() & IPublisherInfo.A_PUBLISH) > 0) {
    File packFile = new Path(jarFile.getAbsolutePath()).addFileExtension("pack.gz").toFile(); //$NON-NLS-1$
    if (packFile.exists()) {
      IArtifactDescriptor ad200 = createPack200ArtifactDescriptor(descriptor.getArtifactKey(), packFile, descriptor.getProperty(IArtifactDescriptor.ARTIFACT_SIZE));
      publishArtifact(ad200, packFile, publisherInfo);
    }
  }
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher.eclipse

@Override
protected void publishArtifact(IArtifactDescriptor descriptor, File jarFile, IPublisherInfo publisherInfo) {
  // no files to publish so this is done.
  if (jarFile == null || publisherInfo == null)
    return;
  // if the destination already contains the descriptor, there is nothing to do.
  IArtifactRepository destination = publisherInfo.getArtifactRepository();
  if (destination == null || destination.contains(descriptor))
    return;
  super.publishArtifact(descriptor, jarFile, publisherInfo);
  // if we are assimilating pack200 files then add the packed descriptor
  // into the repo assuming it does not already exist.
  boolean reuse = "true".equals(destination.getProperties().get(AbstractPublisherApplication.PUBLISH_PACK_FILES_AS_SIBLINGS)); //$NON-NLS-1$
  if (reuse && (publisherInfo.getArtifactOptions() & IPublisherInfo.A_PUBLISH) > 0) {
    File packFile = new Path(jarFile.getAbsolutePath()).addFileExtension("pack.gz").toFile(); //$NON-NLS-1$
    if (packFile.exists()) {
      IArtifactDescriptor ad200 = createPack200ArtifactDescriptor(descriptor.getArtifactKey(), packFile, descriptor.getProperty(IArtifactDescriptor.ARTIFACT_SIZE));
      publishArtifact(ad200, packFile, publisherInfo);
    }
  }
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

  return;
IArtifactRepository destination = publisherInfo.getArtifactRepository();
if (destination == null || destination.contains(descriptor))
  return;
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher

  return;
IArtifactRepository destination = publisherInfo.getArtifactRepository();
if (destination == null || destination.contains(descriptor))
  return;
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

  return;
IArtifactRepository destination = publisherInfo.getArtifactRepository();
if (destination == null || destination.contains(descriptor))
  return;
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher

  return;
IArtifactRepository destination = publisherInfo.getArtifactRepository();
if (destination == null || destination.contains(descriptor))
  return;
origin: org.eclipse.equinox.p2/publisher

  return;
IArtifactRepository destination = publisherInfo.getArtifactRepository();
if (destination == null || destination.contains(descriptor))
  return;
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.equinox.p2.publisher

public IStatus publish(IPublisherAction[] actions, IProgressMonitor monitor) {
  if (monitor == null)
    monitor = new NullProgressMonitor();
  SubMonitor sub = SubMonitor.convert(monitor, actions.length);
  if (Tracing.DEBUG_PUBLISHING)
    Tracing.debug("Invoking publisher"); //$NON-NLS-1$
  try {
    ArtifactProcess artifactProcess = new ArtifactProcess(actions, info);
    IStatus finalStatus = null;
    if (info.getArtifactRepository() != null) {
      finalStatus = info.getArtifactRepository().executeBatch(artifactProcess, sub);
      if (!finalStatus.matches(IStatus.ERROR | IStatus.CANCEL))
        // If the batch process didn't report any errors, then 
        // Use the status from our actions
        finalStatus = artifactProcess.getStatus();
    } else {
      artifactProcess.run(sub);
      finalStatus = artifactProcess.getStatus();
    }
    if (Tracing.DEBUG_PUBLISHING)
      Tracing.debug("Publishing complete. Result=" + finalStatus); //$NON-NLS-1$
    savePublishedIUs();
    if (!finalStatus.isOK())
      return finalStatus;
    return Status.OK_STATUS;
  } finally {
    sub.done();
  }
}
origin: com.github.veithen.cosmos.bootstrap/org.eclipse.equinox.p2.publisher

public IStatus publish(IPublisherAction[] actions, IProgressMonitor monitor) {
  if (monitor == null)
    monitor = new NullProgressMonitor();
  SubMonitor sub = SubMonitor.convert(monitor, actions.length);
  if (Tracing.DEBUG_PUBLISHING)
    Tracing.debug("Invoking publisher"); //$NON-NLS-1$
  try {
    ArtifactProcess artifactProcess = new ArtifactProcess(actions, info);
    IStatus finalStatus = null;
    if (info.getArtifactRepository() != null) {
      finalStatus = info.getArtifactRepository().executeBatch(artifactProcess, sub);
      if (!finalStatus.matches(IStatus.ERROR | IStatus.CANCEL))
        // If the batch process didn't report any errors, then 
        // Use the status from our actions
        finalStatus = artifactProcess.getStatus();
    } else {
      artifactProcess.run(sub);
      finalStatus = artifactProcess.getStatus();
    }
    if (Tracing.DEBUG_PUBLISHING)
      Tracing.debug("Publishing complete. Result=" + finalStatus); //$NON-NLS-1$
    savePublishedIUs();
    if (!finalStatus.isOK())
      return finalStatus;
    return Status.OK_STATUS;
  } finally {
    sub.done();
  }
}
origin: org.eclipse.equinox.p2/publisher

public IStatus publish(IPublisherAction[] actions, IProgressMonitor monitor) {
  if (monitor == null)
    monitor = new NullProgressMonitor();
  SubMonitor sub = SubMonitor.convert(monitor, actions.length);
  if (Tracing.DEBUG_PUBLISHING)
    Tracing.debug("Invoking publisher"); //$NON-NLS-1$
  try {
    ArtifactProcess artifactProcess = new ArtifactProcess(actions, info);
    IStatus finalStatus = null;
    if (info.getArtifactRepository() != null) {
      finalStatus = info.getArtifactRepository().executeBatch(artifactProcess, sub);
      if (!finalStatus.matches(IStatus.ERROR | IStatus.CANCEL))
        // If the batch process didn't report any errors, then 
        // Use the status from our actions
        finalStatus = artifactProcess.getStatus();
    } else {
      artifactProcess.run(sub);
      finalStatus = artifactProcess.getStatus();
    }
    if (Tracing.DEBUG_PUBLISHING)
      Tracing.debug("Publishing complete. Result=" + finalStatus); //$NON-NLS-1$
    savePublishedIUs();
    if (!finalStatus.isOK())
      return finalStatus;
    return Status.OK_STATUS;
  } finally {
    sub.done();
  }
}
origin: org.eclipse.platform/org.eclipse.equinox.p2.publisher

public IStatus publish(IPublisherAction[] actions, IProgressMonitor monitor) {
  if (monitor == null)
    monitor = new NullProgressMonitor();
  SubMonitor sub = SubMonitor.convert(monitor, actions.length);
  if (Tracing.DEBUG_PUBLISHING)
    Tracing.debug("Invoking publisher"); //$NON-NLS-1$
  try {
    ArtifactProcess artifactProcess = new ArtifactProcess(actions, info);
    IStatus finalStatus = null;
    if (info.getArtifactRepository() != null) {
      finalStatus = info.getArtifactRepository().executeBatch(artifactProcess, sub);
      if (!finalStatus.matches(IStatus.ERROR | IStatus.CANCEL))
        // If the batch process didn't report any errors, then 
        // Use the status from our actions
        finalStatus = artifactProcess.getStatus();
    } else {
      artifactProcess.run(sub);
      finalStatus = artifactProcess.getStatus();
    }
    if (Tracing.DEBUG_PUBLISHING)
      Tracing.debug("Publishing complete. Result=" + finalStatus); //$NON-NLS-1$
    savePublishedIUs();
    if (!finalStatus.isOK())
      return finalStatus;
    return Status.OK_STATUS;
  } finally {
    sub.done();
  }
}
org.eclipse.equinox.p2.publisherIPublisherInfogetArtifactRepository

Javadoc

Returns the artifact repository into which any publishable artifacts are published or null if none.

Popular methods of IPublisherInfo

  • getMetadataRepository
    Returns the metadata repository into which any publishable metadata is published or null if none.
  • getAdvice
  • getArtifactOptions
    Returns whether or not artifacts themselves should be published.
  • getConfigurations
    Returns the configurations being published. Each configuration is a string of the form ws.os.arch de
  • getContextMetadataRepository
    Returns the metadata repository given to the publisher as context for the publisher actions. May be
  • addAdvice
    Add the given advice to the set of publishing advices.

Popular in Java

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ImageIO (javax.imageio)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now