-privatepackage PACKAGE-SPEC
Builder
-
Example:
-privatepackage: com.example.*, foo.bar
-
Values:
${packages}
-
Pattern:
.*
-privatepackage
The -privatepackage
instruction specifies packages to include from the class path as private packages. Unlike the Private-Package
header, this instruction is not included in the manifest. It is used to control which packages are bundled privately in the output JAR.
Example:
-privatepackage: com.example.internal.*
This instruction is useful for fine-grained control over bundle contents during the build process.
TODO Needs review - AI Generated content