• 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
  • fmodified ( ';' RESOURCE )+

    public final static String	_fmodifiedHelp	= "${fmodified;<list of filenames>...}, return latest modification date";
    
    public String _fmodified(String args[]) throws Exception {
    	verifyCommand(args, _fmodifiedHelp, null, 2, Integer.MAX_VALUE);
    
    	long time = 0;
    	Collection<String> names = new ArrayList<String>();
    	for (int i = 1; i < args.length; i++) {
    		Processor.split(args[i], names);
    	}
    	for (String name : names) {
    		File f = new File(name);
    		if (f.exists() && f.lastModified() > time)
    			time = f.lastModified();
    	}
    	return "" + time;
    }
    
    • Contact
    • Developers
    • More