alma::acs::eclipse::utils::pluginbuilder::ManifestWriter Class Reference

Collaboration diagram for alma::acs::eclipse::utils::pluginbuilder::ManifestWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ManifestWriter (File folder, File pluginFolder, Logger logger)
void write () throws Exception

Static Public Attributes

static final String activationPolicy = "lazy"

Private Member Functions

void setAttributes (Attributes attrs) throws Exception

Private Attributes

final Logger logger
final Manifest manifest = new Manifest()
final File manifestFolder
final File pluginFolder
final Attributes.Name bundleManifestVersionName = new Attributes.Name("Bundle-ManifestVersion")
final Attributes.Name bundleSymbolicName = new Attributes.Name("Bundle-SymbolicName")
final Attributes.Name bundleActivationPolicyName = new Attributes.Name("Bundle-ActivationPolicy")
final Attributes.Name requireBundleName = new Attributes.Name("Require-bundle")
final Attributes.Name bundleName = new Attributes.Name("Bundle-Name")
final Attributes.Name bundleVendorName = new Attributes.Name("Bundle-Vendor")
final Attributes.Name bundleVersionName = new Attributes.Name("Bundle-Version")
final Attributes.Name bundleClasspathName = new Attributes.Name("Bundle-ClassPath")
final Attributes.Name exportPackageName = new Attributes.Name("Export-Package")

Static Private Attributes

static final String manifestName = "MANIFEST.MF"
static final String pluginBundleName = " ACS Plug-in"
static final String version = "1.0.0"
static final String vendor = "European Southern Observatory"

Detailed Description

Write the MANIFEST>MF of the plugin

Author:
acaproni

Constructor & Destructor Documentation

alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::ManifestWriter ( File  folder,
File  pluginFolder,
Logger  logger 
) [inline]

Constructor

Parameters:
folder The folder to write the manifest into
pluginFolder The root folder of the plugin
Logger The logger

References manifestFolder.


Member Function Documentation

void alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::setAttributes ( Attributes  attrs  )  throws Exception [inline, private]
void alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::write (  )  throws Exception [inline]

Write the manifest

Exceptions:
Exception In case of error

References manifest, manifestFolder, manifestName, and setAttributes().

Referenced by alma::acs::eclipse::utils::pluginbuilder::PluginBuilder::addManifest().


Member Data Documentation

The activation policy

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::bundleActivationPolicyName = new Attributes.Name("Bundle-ActivationPolicy") [private]

The attribute name for Bundle-ActivationPolicy

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::bundleClasspathName = new Attributes.Name("Bundle-ClassPath") [private]

The attribute name for Bundle-ClassPath (i.e. the list of ACS jar files in the plugin).

The classpath is built by reading the jar files in the plugin folder

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::bundleManifestVersionName = new Attributes.Name("Bundle-ManifestVersion") [private]

The attribute name for Bundle-ManifestVersion

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::bundleName = new Attributes.Name("Bundle-Name") [private]

The attribute name for Bundle-Name

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::bundleSymbolicName = new Attributes.Name("Bundle-SymbolicName") [private]

The attribute name for Bundle-SymbolicName

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::bundleVendorName = new Attributes.Name("Bundle-Vendor") [private]

The attribute name for Bundle-Vendor

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::bundleVersionName = new Attributes.Name("Bundle-Version") [private]

The attribute name for Bundle-Version

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::exportPackageName = new Attributes.Name("Export-Package") [private]

The attribute name for Export-Package (i.e. the list of java packages exported by all the jar files contained in the plugin)

The export package is built be reading, for each jar file in the plugin root folder, the list of the java packages

Referenced by setAttributes().

The logger

Referenced by setAttributes().

final Manifest alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::manifest = new Manifest() [private]

The manifest that objects from this class write in the pugin folder

Referenced by write().

The folder to write the manifest into

Referenced by ManifestWriter(), and write().

final String alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::manifestName = "MANIFEST.MF" [static, private]

The name of the manifest file

Referenced by setAttributes(), and write().

final String alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::pluginBundleName = " ACS Plug-in" [static, private]

The bundle name is dynamically generated by appending pluginBundleName to the plugin root name

Referenced by setAttributes().

The root folder of the plugin

Referenced by setAttributes().

final Attributes.Name alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::requireBundleName = new Attributes.Name("Require-bundle") [private]

The attribute name for Bundle-ActivationPolicy

Referenced by setAttributes().

final String alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::vendor = "European Southern Observatory" [static, private]

The vendor i.e ESO

Referenced by setAttributes().

The version is statically set to 1.0.0

Referenced by setAttributes().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2