• Intro Headers Instructions Macros Commands
Fork me on GitHub
    • Getting Started
      • How to install bnd
      • Guided Tour
      • Guided Tour Workspace & Projects
      • FAQ - Frequently Asked Questions
    • Concepts and Practices
      • Introduction
      • Concepts
      • Best practices
    • Build and Development
      • Project Setup
      • Generating JARs
      • Versioning
      • Baselining
      • Service Components
      • Metatype
      • Contracts
      • Bundle Annotations
      • Accessor Properties
      • SPI Annotations
    • Dependency and Launching
      • Resolving Dependencies
      • Launching
      • Startlevels
    • Testing
      • Testing
      • Testing with Launchpad
    • Packaging and Distribution
      • Packaging Applications
      • JPMS Libraries
      • Wrapping Libraries to OSGi Bundles
    • Documentation and Tools
      • Generating Documentation
      • Commands
      • For Developers
      • Templates for Workspaces
      • Tips for Windows users
      • Tools bound to bnd
    • Reference Material
      • Reference
      • Headers
      • Instruction Reference
      • Instruction Index
      • Macro Reference
      • Macro Index
      • Plugins
      • External Plugins
    • Configuration and Troubleshooting
      • Settings
      • Errors
      • Warnings
  • -noee BOOLEAN
    Ant

    Donot add an automatic requirement on an EE capability based on the class format.

    		//
    		// We want to add the minimum EE as a requirement
    		// based on the class version
    		//
    
    		if (!isTrue(getProperty(NOEE)) //
    				&& !ees.isEmpty() // no use otherwise
    				&& since(About._2_3) // we want people to not have to
    										// automatically add it
    				&& !requirements.containsKey(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE) // and
    																											// it
    																											// should
    																											// not
    																											// be
    																											// there
    																											// already
    		) {
    
    			JAVA highest = ees.last();
    			Attrs attrs = new Attrs();
    
    			String filter = doEEProfiles(highest);
    
    			attrs.put(Constants.FILTER_DIRECTIVE, filter);
    
    			//
    			// Java 1.8 introduced profiles.
    			// If -eeprofile= auto | (<profile>="...")+ is set then
    			// we add a
    
    			requirements.add(ExecutionEnvironmentNamespace.EXECUTION_ENVIRONMENT_NAMESPACE, attrs);
    		}
    
Search
    • Home