Package org.apache.netbeans.nbm.utils
Class ExamineManifest
java.lang.Object
org.apache.netbeans.nbm.utils.ExamineManifest
Tag examines the manifest of a jar file and retrieves NetBeans specific information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCode name base of the module only.Full name of module: code name base, then optionally slash and major release version.list of package statements from OpenIDE-Module-Public-Packages.booleanreturns true if both public packages and friend list are declared.booleanreturns true if there are defined public packages and there is no friend declaration.booleanbooleanbooleanbooleanprivate voidprivate voidvoidsetArtifactFile(File artifactFileLoc) Either callsetJarFile(java.io.File)orsetManifestFile(java.io.File)as appropriate.voidsetJarFile(File jarFileLoc) The jar file to examine.voidsetManifestFile(File manifestFileLoc) Manifest file to be examined.voidsetNetBeansModule(boolean netBeansModule) voidsetPopulateDependencies(boolean populateDependencies)
-
Field Details
-
logger
private final org.apache.maven.plugin.logging.Log logger -
jarFile
-
manifestFile
-
netBeansModule
private boolean netBeansModule -
osgiBundle
private boolean osgiBundle -
localized
private boolean localized -
specVersion
-
implVersion
-
module
-
locBundle
-
classpath
-
publicPackages
private boolean publicPackages -
populateDependencies
private boolean populateDependencies -
dependencyTokens
-
osgiImports
-
osgiExports
-
friendPackages
private boolean friendPackages -
friends
-
packages
-
requires
-
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
-
setJarFile
The jar file to examine. It is exclusive with manifestFile.- Parameters:
jarFileLoc- jar file
-
setManifestFile
Manifest file to be examined. It is exclusive with jarFile.- Parameters:
manifestFileLoc- manifedt file
-
setArtifactFile
Either callsetJarFile(java.io.File)orsetManifestFile(java.io.File)as appropriate.- Parameters:
artifactFileLoc- a JAR or folder
-
getClasspath
-
isNetBeansModule
public boolean isNetBeansModule() -
setNetBeansModule
public void setNetBeansModule(boolean netBeansModule) -
isLocalized
public boolean isLocalized() -
getSpecVersion
-
getImplVersion
-
getModule
Code name base of the module only. Does not include any release version.- Returns:
- module code name base
-
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
-
hasFriendPackages
public boolean hasFriendPackages()returns true if both public packages and friend list are declared.- Returns:
- true if has friend package
-
getFriends
-
getPackages
list of package statements from OpenIDE-Module-Public-Packages. All items end with .*- Returns:
- list of package
-
isOsgiBundle
public boolean isOsgiBundle() -
getOsgiImports
-
getOsgiExports
-
getNetBeansRequiresTokens
-
getNetBeansProvidesTokens
-
isBundleAutoload
public boolean isBundleAutoload()
-