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(java.io.File jar)
           
 
Method Summary
 java.util.jar.JarFile getJar()
          Get a jar with the plugin contents
 java.io.File getJarFile()
          Get a jar with the plugin contents
 java.util.jar.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(java.io.File jar)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

hasManifest

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

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

getJar

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

Returns:
the jar
Throws:
java.io.IOException

getManifest

public java.util.jar.Manifest getManifest()
                                   throws java.io.IOException
Description copied from interface: EclipseOsgiPlugin
Get the plugin Manifest

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

getJarFile

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

Returns:
the jar file
Throws:
java.io.IOException


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