releng/org.eclipse.orion.client.releng/builder/scripts/helpers.js
function getBundles(buildObj) {
		var _self = self;
		var bundles = (buildObj.bundles || []);
		return bundles.map(function(bundle) {
			bundle = project.replaceProperties(bundle);
			var dir = project.resolveFile(bundle + Packages.java.io.File.separator + "web");
			if (!dir.exists() || !dir.isDirectory()) {
				_self.log("Bundle folder " + dir.getPath() + " does not exist", Project.MSG_WARN);
				return null;
			}
			_self.log("Found bundle web folder: " + dir.getPath());
			return { bundle: bundle,  web: dir };
		}).filter(function(b) {
			return !!b;
		});
	}
function getBundles(buildObj) {
		var _self = self;
		var bundles = (buildObj.bundles || []);
		return bundles.map(function(bundle) {
			bundle = project.replaceProperties(bundle);
			var dir = project.resolveFile(bundle + Packages.java.io.File.separator + "web");
			if (!dir.exists() || !dir.isDirectory()) {
				_self.log("Bundle folder " + dir.getPath() + " does not exist", Project.MSG_WARN);
				return null;
			}
			_self.log("Found bundle web folder: " + dir.getPath());
			return { bundle: bundle,  web: dir };
		}).filter(function(b) {
			return !!b;
		});
	}
function getBundles ( buildObj ) { var _self = self ; var bundles = ( buildObj . bundles || [ ] ) ; return bundles . map ( function ( bundle ) { bundle = project . replaceProperties ( bundle ) ; var dir = project . resolveFile ( bundle + Packages . java . io . File . separator + "web" ) ; if ( ! dir . exists ( ) || ! dir . isDirectory ( ) ) { _self . log ( "Bundle folder " + dir . getPath ( ) + " does not exist" , Project . MSG_WARN ) ; return null ; } _self . log ( "Found bundle web folder: " + dir . getPath ( ) ) ; return { bundle : bundle , web : dir } ; } ) . filter ( function ( b ) { return ! ! b ; } ) ; }
Returns bundle info from the build config.
@param {Object} buildObj The build config object
@returns { name: string, web: java.io.File }[] Array of bundle info objects.
Returns bundle info from the build config .