• 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
  • isdir ( ';' FILE )+

    layout: default

    public String _isdir(String args[]) {
    	boolean isdir = true;
    	// If no dirs provided, return false
    	if (args.length < 2) {
    		isdir = false;
    	}
    	for (int i = 1; i < args.length; i++) {
    		File f = new File(args[i]).getAbsoluteFile();
    		isdir &= f.isDirectory();
    	}
    	return isdir ? "true" : "false";
    
    }
    
    • Contact
    • Developers
    • More