org.codehaus.mojo.nbm.utils
Class ExamineManifest

java.lang.Object
  extended by org.codehaus.mojo.nbm.utils.ExamineManifest

public class ExamineManifest
extends Object

Tag examines the manifest of a jar file and retrieves NetBeans specific information.

Author:
Milos Kleint

Constructor Summary
ExamineManifest(org.apache.maven.plugin.logging.Log logger)
           
 
Method Summary
 void checkFile()
           
 String getClasspath()
           
 List<String> getDependencyTokens()
           
 List<String> getFriends()
           
 String getImplVersion()
           
 String getModule()
          Code name base of the module only.
 String getModuleWithRelease()
          Full name of module: code name base, then optionally slash and major release version.
 List<String> getNetBeansProvidesTokens()
           
 List<String> getNetBeansRequiresTokens()
           
 Set<String> getOsgiExports()
           
 Set<String> getOsgiImports()
           
 List<String> getPackages()
          list of package statements from OpenIDE-Module-Public-Packages.
 String getSpecVersion()
           
 boolean hasFriendPackages()
          returns true if both public packages and friend list are declared.
 boolean hasPublicPackages()
          returns true if there are defined public packages and there is no friend declaration.
 boolean isBundleAutoload()
           
 boolean isLocalized()
           
 boolean isNetBeansModule()
           
 boolean isOsgiBundle()
           
 void setArtifactFile(File artifactFileLoc)
          Either call setJarFile(java.io.File) or setManifestFile(java.io.File) as appropriate.
 void setJarFile(File jarFileLoc)
          The jar file to examine.
 void setManifestFile(File manifestFileLoc)
          Manifest file to be examined.
 void setNetBeansModule(boolean netBeansModule)
           
 void setPopulateDependencies(boolean populateDependencies)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExamineManifest

public ExamineManifest(org.apache.maven.plugin.logging.Log logger)
Method Detail

checkFile

public void checkFile()
               throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

setJarFile

public void setJarFile(File jarFileLoc)
The jar file to examine. It is exclusive with manifestFile.


setManifestFile

public void setManifestFile(File manifestFileLoc)
Manifest file to be examined. It is exclusive with jarFile.


setArtifactFile

public void setArtifactFile(File artifactFileLoc)
Either call setJarFile(java.io.File) or setManifestFile(java.io.File) as appropriate.

Parameters:
artifactFileLoc - a JAR or folder

getClasspath

public String getClasspath()

isNetBeansModule

public boolean isNetBeansModule()

setNetBeansModule

public void setNetBeansModule(boolean netBeansModule)

isLocalized

public boolean isLocalized()

getSpecVersion

public String getSpecVersion()

getImplVersion

public String getImplVersion()

getModule

public String getModule()
Code name base of the module only. Does not include any release version.


getModuleWithRelease

public String getModuleWithRelease()
Full name of module: code name base, then optionally slash and major release version.


hasPublicPackages

public boolean hasPublicPackages()
returns true if there are defined public packages and there is no friend declaration.


setPopulateDependencies

public void setPopulateDependencies(boolean populateDependencies)

getDependencyTokens

public List<String> getDependencyTokens()

hasFriendPackages

public boolean hasFriendPackages()
returns true if both public packages and friend list are declared.


getFriends

public List<String> getFriends()

getPackages

public List<String> getPackages()
list of package statements from OpenIDE-Module-Public-Packages. All items end with .*


isOsgiBundle

public boolean isOsgiBundle()

getOsgiImports

public Set<String> getOsgiImports()

getOsgiExports

public Set<String> getOsgiExports()

getNetBeansRequiresTokens

public List<String> getNetBeansRequiresTokens()

getNetBeansProvidesTokens

public List<String> getNetBeansProvidesTokens()

isBundleAutoload

public boolean isBundleAutoload()


Copyright © 2005-2013 Codehaus. All Rights Reserved.