• Intro Headers Instructions Macros
  • Fork me on GitHub
    • Release
    • 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
    • Testing
    • Packaging Applications
    • Wrapping Libraries to OSGi Bundles
    • From the command line
    • For Developers
    • Plugins
    • Tools bound to bnd
    • File Format
    • Header Reference
    • Instruction
    • Instruction Index
    • Macro Reference
    • Command Reference
    • Plugins Reference
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
    Supported by OSGi enRoute
  • -diffignore PACKAGE-SPEC ( ',' PACKAGE-SPEC ) *

    				// We might have some other projects we want build
    				// before we do anything, but these projects are not in
    				// our path. The -dependson allows you to build them before.
    				// The values are possibly negated globbing patterns.
    
    				// dependencies.add( getWorkspace().getProject("cnf"));
    
    				String dp = getProperty(Constants.DEPENDSON);
    				Set<String> requiredProjectNames = new LinkedHashSet<String>(new Parameters(dp).keySet());
    
    				// Allow DependencyConstributors to modify
    				// requiredProjectNames
    				List<DependencyContributor> dcs = getPlugins(DependencyContributor.class);
    				for (DependencyContributor dc : dcs)
    					dc.addDependencies(this, requiredProjectNames);
    
    				Instructions is = new Instructions(requiredProjectNames);
    
    				Set<Instruction> unused = new HashSet<Instruction>();
    				Collection<Project> projects = getWorkspace().getAllProjects();
    				Collection<Project> dependencies = is.select(projects, unused, false);
    
    				for (Instruction u : unused)
    					msgs.MissingDependson_(u.getInput());
    
    • Contact
    • Developers
    • More