Package org.eclipse.pde.internal.core.exports

Examples of org.eclipse.pde.internal.core.exports.FeatureExportInfo


  }
 
  private void executeDeploy(BundlePluginModelBase plugin) {
    int flag=0;
    PluginExportJob job;
    FeatureExportInfo info = new FeatureExportInfo();
    info.toDirectory = true;
    info.useJarFormat = true;
    info.exportSource = false;
    info.destinationDirectory = getDestinationDirectory();
    info.zipFileName = null;
View Full Code Here


  {
    final File rootDir = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile();
    final File zipFile = new File(rootDir, "exportedfeatures.zip");
    zipFile.delete();

    final FeatureExportInfo info = new FeatureExportInfo();
    info.toDirectory = false;
    info.useJarFormat = true;
    info.exportSource = false;
    info.zipFileName = zipFile.getName();
    info.items = getFeatures();
    info.qualifier = null;
    info.destinationDirectory = rootDir.toString();

    final Class featureExportOperationClass = Class.forName("org.eclipse.pde.internal.core.exports.FeatureExportOperation");
    final String jobName = "Feature export job";
    final List<Object> arguments = new ArrayList();
    Constructor constructor = null;

    //first we look for single argument constructor, which is present in eclipse 3.4
    try
    {
      arguments.add(info);
      constructor = featureExportOperationClass.getConstructor(info.getClass());
    }
    catch (final NoSuchMethodException nsme)
    {
      arguments.add(jobName);
      constructor = featureExportOperationClass.getConstructor(info.getClass(), String.class);
    }

    final Object feo = constructor.newInstance(arguments.toArray());
    Method runMethod = null;
    Class currentClass = featureExportOperationClass;
View Full Code Here

  {
    final File rootDir = ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile();
    final File zipFile = new File(rootDir, "exportedplugins.zip");
    zipFile.delete();

    final FeatureExportInfo info = new FeatureExportInfo();
    info.toDirectory = false;
    info.useJarFormat = true;
    info.exportSource = false;
    info.zipFileName = zipFile.getName();
    info.items = getPlugins();
    info.qualifier = null;
    info.destinationDirectory = rootDir.toString();

    final Class pluginExportOperationClass = Class.forName("org.eclipse.pde.internal.core.exports.PluginExportOperation");
    final String jobName = "Plugin export job";
    final List<Object> arguments = new ArrayList();
    Constructor constructor = null;

    //first we look for single argument constructor, which is present in eclipse 3.4
    try
    {
      arguments.add(info);
      constructor = pluginExportOperationClass.getConstructor(info.getClass());
    }
    catch (final NoSuchMethodException nsme)
    {
      arguments.add(jobName);
      constructor = pluginExportOperationClass.getConstructor(info.getClass(), String.class);
    }

    final Object peo = constructor.newInstance(arguments.toArray());
    Method runMethod = null;
    Class currentClass = pluginExportOperationClass;
View Full Code Here

      final File zipFile = new File(ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile(), product.getName().substring(0, product.getName().length() - 8) + ".zip");

      SysOutProgressMonitor.out.println("Exporting Eclipse Product using '" + product.getLocation() + "' as configuration to: " + zipFile);

      final FeatureExportInfo info = new FeatureExportInfo();
      info.useJarFormat = true;
      info.zipFileName = zipFile.getName();
      if (prod.useFeatures())
      {
        info.items = getFeatures(prod);
      }
      else
      {
        info.items = getPlugins(prod);
      }
      info.destinationDirectory = ResourcesPlugin.getWorkspace().getRoot().getLocation().toString();

      final Class productExportOperationClass = Class.forName("org.eclipse.pde.internal.core.exports.ProductExportOperation");
      final String jobName = "Product export job";
      final List<Object> arguments = new ArrayList();
      Constructor constructor = null;

      //first we look for single argument constructor, which is present in eclipse 3.4
      try
      {
        arguments.add(info);
        constructor = productExportOperationClass.getConstructor(info.getClass(), IProduct.class, String.class);
      }
      catch (final NoSuchMethodException nsme)
      {
        arguments.add(jobName);
        constructor = productExportOperationClass.getConstructor(info.getClass(), String.class, IProduct.class, String.class);
      }
      arguments.add(prod);
      arguments.add(product.getName().substring(0, product.getName().length() - 8));

      final Object peo = constructor.newInstance(arguments.toArray());
View Full Code Here

TOP

Related Classes of org.eclipse.pde.internal.core.exports.FeatureExportInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.