• Intro Headers Instructions Macros Commands
  • Fork me on GitHub
    • Introduction
    • How to install bnd
    • Guided Tour
    • Guided Tour Workspace & Projects
    • Concepts
    • Best practices
    • Build
    • Project Setup
    • Generating JARs
    • Versioning
    • Baselining
    • Service Components
    • Metatype
    • Contracts
    • Bundle Annotations
    • Accessor Properties
    • SPI Annotations
    • Resolving Dependencies
    • Launching
    • Startlevels
    • Testing
    • Testing with Launchpad
    • Packaging Applications
    • JPMS Libraries
    • Wrapping Libraries to OSGi Bundles
    • Generating Documentation
    • Commands
    • For Developers
    • Tips for Windows users
    • Tools bound to bnd
    • Headers
    • Instruction Reference
    • Instruction Index
    • Macro Reference
    • Macro Index
    • Plugins
    • External Plugins
    • Settings
    • Errors
    • Warnings
    • Frequently Asked Questions
  • -runbuilds BOOLEAN

    public boolean getRunBuilds() {
    	boolean result;
    	String runBuildsStr = getProperty(Constants.RUNBUILDS);
    	if (runBuildsStr == null)
    		result = !getPropertiesFile().getName().toLowerCase().endsWith(Constants.DEFAULT_BNDRUN_EXTENSION);
    	else
    		result = Boolean.parseBoolean(runBuildsStr);
    	return result;
    }
    
    protected void updateFromProject() throws Exception {
    	// pkr: could not use this because this is killing the runtests.
    	// project.refresh();
    	runbundles.clear();
    	Collection<Container> run = project.getRunbundles();
    
    	for (Container container : run) {
    		File file = container.getFile();
    		if (file != null && (file.isFile() || file.isDirectory())) {
    			runbundles.add(file.getAbsolutePath());
    		} else {
    			error("Bundle file \"%s\" does not exist, given error is %s", file, container.getError());
    		}
    	}
    
    	if (project.getRunBuilds()) {
    		File[] builds = project.build();
    		if (builds != null)
    			for (File file : builds)
    				runbundles.add(file.getAbsolutePath());
    	}
    
    	Collection<Container> runpath = project.getRunpath();
    	runsystempackages = new Parameters( project.mergeProperties(Constants.RUNSYSTEMPACKAGES));
    	runsystemcapabilities = project.mergeProperties(Constants.RUNSYSTEMCAPABILITIES);
    	framework = getRunframework(project.getProperty(Constants.RUNFRAMEWORK));
    
    	timeout = Processor.getDuration(project.getProperty(Constants.RUNTIMEOUT), 0);
    	trace = Processor.isTrue(project.getProperty(Constants.RUNTRACE));
    
    	runpath.addAll(project.getRunFw());
    
    	for (Container c : runpath) {
    		addClasspath(c);
    	}
    
    	runvm.addAll(project.getRunVM());
    	runprogramargs.addAll(project.getRunProgramArgs());
    	runproperties = project.getRunProperties();
    
    	storageDir = project.getRunStorage();
    	if (storageDir == null) {
    		storageDir = new File(project.getTarget(), "fw");
    	}
    }
    
    • GitHub