org.apache.maven.plugin.eclipse.osgiplugin
Class PackagedPlugin

java.lang.Object
  extended by org.apache.maven.plugin.eclipse.osgiplugin.AbstractEclipseOsgiPlugin
      extended by org.apache.maven.plugin.eclipse.osgiplugin.PackagedPlugin
All Implemented Interfaces:
EclipseOsgiPlugin

public class PackagedPlugin
extends AbstractEclipseOsgiPlugin

Represents an Eclipse plugin that it's packaged as a jar

Version:
$Id: PackagedPlugin.java 728546 2008-12-21 22:56:51Z bentmann $
Author:
Carlos Sanchez

Constructor Summary
PackagedPlugin(File jar)
           
 
Method Summary
 JarFile getJar()
          Get a jar with the plugin contents
 File getJarFile()
          Get a jar with the plugin contents
 Manifest getManifest()
          Get the plugin Manifest
 boolean hasManifest()
          Whether the manifest is present or not
 
Methods inherited from class org.apache.maven.plugin.eclipse.osgiplugin.AbstractEclipseOsgiPlugin
getFile, getManifestAttribute, getPluginProperties, getPomProperties, setFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PackagedPlugin

public PackagedPlugin(File jar)
               throws IOException
Throws:
IOException
Method Detail

hasManifest

public boolean hasManifest()
                    throws IOException
Description copied from interface: EclipseOsgiPlugin
Whether the manifest is present or not

Returns:
true if the manifest exists, false otherwise
Throws:
IOException

getJar

public JarFile getJar()
               throws IOException
Description copied from interface: EclipseOsgiPlugin
Get a jar with the plugin contents

Returns:
the jar
Throws:
IOException

getManifest

public Manifest getManifest()
                     throws IOException
Description copied from interface: EclipseOsgiPlugin
Get the plugin Manifest

Returns:
the Manifest or null if it has no manifest
Throws:
IOException

getJarFile

public File getJarFile()
                throws IOException
Description copied from interface: EclipseOsgiPlugin
Get a jar with the plugin contents

Returns:
the jar file
Throws:
IOException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.