The package properties dialog allows the setting of obfuscation options on a per-package basis.
Include Resources
Selecting Include Resources enables JCloak to scan for resources in the file path for the package. JCloak includes all resources found and saves them with the obfuscated classes with their path's adjusted to reflect any change to the package name.
Resources include .gif, .jpg, .properties, etc. See the SetResourceFileExtensions directive for how to change the files that match as a resource.
Package Obfuscate Controls' settings control obfuscation of all classes in the package. The controls are as outlined below:
See the section on Controlling Class Renaming for more details.
Obfuscate Access Level | Action |
unspecified | Obfuscate access level setting defaults to the global obfuscate access level setting. |
public | All classes in the package that don't override the package level setting will have their name's obfuscated. |
package | If a class is declared with default (package) access or private access it's name is obfuscated. All public class names are preserved |
private | The classes names are bfuscated only if they are declared private. If a class is default (package) or public access it's name is preserved. |
none | No classes will have their names obfuscated, unless they override this setting with a class property setting. |
Obfuscate Access Level | Action |
unspecified | Obfuscate access level setting defaults to the global obfuscate access level setting. |
Public | All symbols are eligible to be obfuscated. |
Package | This setting can be used to preserve the public API for a class library. The public and protected symbols are preserved. All private and package symbols are eligible to be obfuscated. |
private | Only the private symbols are obfuscated, the remaining symbols are preserved. |
None | No symbols are obfuscated all symbols are preserved. |
Note, any package Obfuscate Access Level setting, except for unspecified, overrides the global obfuscate access level setting.