• 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
  • -reportnewer BOOLEAN

    private void reportNewer(long lastModified, Jar jar) {
    	if (isTrue(getProperty(Constants.REPORTNEWER))) {
    		StringBuilder sb = new StringBuilder();
    		String del = "Newer than " + new Date(lastModified);
    		for (Map.Entry<String,Resource> entry : jar.getResources().entrySet()) {
    			if (entry.getValue().lastModified() > lastModified) {
    				sb.append(del);
    				del = ", \n     ";
    				sb.append(entry.getKey());
    			}
    		}
    		if (sb.length() > 0)
    			warning(sb.toString());
    	}
    }
    
    • Contact
    • Developers
    • More