Class ExamineManifest

java.lang.Object
org.apache.netbeans.nbm.utils.ExamineManifest

public class ExamineManifest extends Object
Tag examines the manifest of a jar file and retrieves NetBeans specific information.
  • Field Details

    • logger

      private final org.apache.maven.plugin.logging.Log logger
    • jarFile

      private File jarFile
    • manifestFile

      private File manifestFile
    • netBeansModule

      private boolean netBeansModule
    • osgiBundle

      private boolean osgiBundle
    • localized

      private boolean localized
    • specVersion

      private String specVersion
    • implVersion

      private String implVersion
    • module

      private String module
    • locBundle

      private String locBundle
    • classpath

      private String classpath
    • publicPackages

      private boolean publicPackages
    • populateDependencies

      private boolean populateDependencies
    • dependencyTokens

      private List<String> dependencyTokens
    • osgiImports

      private Set<String> osgiImports
    • osgiExports

      private Set<String> osgiExports
    • friendPackages

      private boolean friendPackages
    • friends

      private List<String> friends
    • packages

      private List<String> packages
    • requires

      private List<String> requires
    • provides

      private List<String> provides
    • bundleAutoload

      private boolean bundleAutoload
  • Constructor Details

    • ExamineManifest

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

    • checkFile

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

      private void resetExamination()
    • processManifest

      private void processManifest(Manifest mf)
    • setJarFile

      public void setJarFile(File jarFileLoc)
      The jar file to examine. It is exclusive with manifestFile.
      Parameters:
      jarFileLoc - jar file
    • setManifestFile

      public void setManifestFile(File manifestFileLoc)
      Manifest file to be examined. It is exclusive with jarFile.
      Parameters:
      manifestFileLoc - manifedt file
    • setArtifactFile

      public void setArtifactFile(File artifactFileLoc)
      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.
      Returns:
      module code name base
    • getModuleWithRelease

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

      public boolean hasPublicPackages()
      returns true if there are defined public packages and there is no friend declaration.
      Returns:
      true if has public package
    • 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.
      Returns:
      true if has friend package
    • getFriends

      public List<String> getFriends()
    • getPackages

      public List<String> getPackages()
      list of package statements from OpenIDE-Module-Public-Packages. All items end with .*
      Returns:
      list of package
    • 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()