• 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
    • Testing
    • Packaging Applications
    • Wrapping Libraries to OSGi Bundles
    • From the command line
    • For Developers
    • Plugins
    • Tools bound to bnd
    • Header Reference
    • Instruction
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Command Reference
    • Plugins Reference
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • extension STRING

    static String	_extension	= "${extension;<string>}";
    
    public String _extension(String args[]) throws Exception {
    	verifyCommand(args, _extension, null, 2, 2);
    	String name = args[1];
    	int n = name.indexOf('.');
    	if (n < 0)
    		return "";
    	return name.substring(n + 1);
    }
    
    • Contact
    • Developers
    • More