Author: Tomas Zezula
Setting Compact Profile in Ant Based J2SE Project
When a compact profile is set the IDE checks compact profile violations and the created project jar file contains the Profile attribute.
Compact Profile Violations
When a new jar or subproject is added to a project or the project's profile is lowered the IDE checks the referenced jars for Profile attribute and marks the project as broken if it contains a jar requiring higher profile.
The library without a Profile attribute can be added without any warnings because the class file constant pool inspection is expensive for large jar files.
The IDE provides class file constant pool inspection of both project sources (classes from IDE internal cache used for compile on save are used) and classes in libraries. The analyses is available in Source/Inspect.
By default the inspection verifies the classes according to project selected compact profile however it can be changed by switching configuration to Default or other named configuration and pressing the Manage button.