
Public Member Functions | |
| ManifestWriter (File folder, File pluginFolder, boolean bundleByReference, String[] finalJarsLocations, 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") |
| boolean | bundlingByReference |
| String[] | finalJarsLocations |
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" |
Write the MANIFEST>MF of the plugin
| alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::ManifestWriter | ( | File | folder, | |
| File | pluginFolder, | |||
| boolean | bundleByReference, | |||
| String[] | finalJarsLocations, | |||
| Logger | logger | |||
| ) | [inline] |
Constructor
| folder | The folder to write the manifest into | |
| pluginFolder | The root folder of the plugin | |
| finalJarsLocations | ||
| bundleByReference | ||
| Logger | The logger |
References bundlingByReference, and manifestFolder.
| void alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::setAttributes | ( | Attributes | attrs | ) | throws Exception [inline, private] |
Set the attributes of the manifest
| attrs | The attributes |
| Exception | In case of error |
References activationPolicy, bundleActivationPolicyName, bundleClasspathName, bundleManifestVersionName, bundleName, bundleSymbolicName, bundleVendorName, bundleVersionName, bundlingByReference, exportPackageName, finalJarsLocations, alma::acs::eclipse::utils::jar::JarFolder::getJars(), logger, manifestName, pluginBundleName, pluginFolder, requireBundleName, vendor, and version.
Referenced by write().
| void alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::write | ( | ) | throws Exception [inline] |
Write the manifest
| Exception | In case of error |
References manifest, manifestFolder, manifestName, and setAttributes().
Referenced by alma::acs::eclipse::utils::pluginbuilder::PluginBuilder::addManifest().
final String alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::activationPolicy = "lazy" [static] |
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().
Used when doing bundling by reference
Referenced by ManifestWriter(), and 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().
String [] alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::finalJarsLocations [private] |
Referenced by setAttributes().
final Logger alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::logger [private] |
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().
final File alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::manifestFolder [private] |
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().
final File alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::pluginFolder [private] |
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().
final String alma::acs::eclipse::utils::pluginbuilder::ManifestWriter::version = "1.0.0" [static, private] |
The version is statically set to 1.0.0
Referenced by setAttributes().
1.6.2