• Intro Headers Instructions Macros Commands
  • Fork me on GitHub
    • Introduction
    • How to install bnd
    • Guided Tour
    • Guided Tour Workspace & Projects
    • Concepts
    • Best practices
    • Build
    • Generating JARs
    • Versioning
    • Baselining
    • Service Components
    • Metatype
    • Contracts
    • Manifest Annotations
    • Resolving Dependencies
    • Launching
    • Plain JUnit Testing with OSGi (PRELIMENARY)
    • Testing
    • Packaging Applications
    • Wrapping Libraries to OSGi Bundles
    • Commands
    • For Developers
    • Tools bound to bnd
    • Headers
    • Instruction Reference
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Plugins
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • -nouses BOOLEAN

    /**
     * Add the uses clauses. This method iterates over the exports and cal
     *
     * @param exports
     * @param uses
     * @throws MojoExecutionException
     */
    void doUses(Packages exports, Map<PackageRef,List<PackageRef>> uses, Packages imports) {
    	if (isTrue(getProperty(NOUSES)))
    		return;
    
    	for (Iterator<PackageRef> i = exports.keySet().iterator(); i.hasNext();) {
    		PackageRef packageRef = i.next();
    		String packageName = packageRef.getFQN();
    		setProperty(CURRENT_PACKAGE, packageName);
    		try {
    			doUses(packageRef, exports, uses, imports);
    		}
    		finally {
    			unsetProperty(CURRENT_PACKAGE);
    		}
    
    	}
    }
    
    • GitHub