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

    		//
    		// 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);
    		}
    
    • GitHub