Package org.bladerunnerjs.utility

Examples of org.bladerunnerjs.utility.BundleSetBuilder


  }
 
  public static BundleSet createBundleSet(BundlableNode bundlableNode) throws ModelOperationException {
    Logger logger = bundlableNode.root().logger(BundleSetCreator.class);
   
    BundleSetBuilder bundleSetBuilder = new BundleSetBuilder(bundlableNode);
    List<LinkedAsset> seedFiles = bundlableNode.seedAssets();
   
    String name = (bundlableNode instanceof NamedNode) ? ((NamedNode) bundlableNode).getName() : "default";
    if(seedFiles.isEmpty()) {
      logger.debug(Messages.BUNDLABLE_NODE_HAS_NO_SEED_FILES_MSG, bundlableNode.getTypeName(), name);
    }
    else {
      logger.debug(Messages.BUNDLABLE_NODE_SEED_FILES_MSG, bundlableNode.getTypeName(), name, seedFilePaths(bundlableNode, seedFiles));
    }
   
    logger.debug(Messages.APP_SOURCE_LOCATIONS_MSG, bundlableNode.app().getName(), assetContainerPaths(bundlableNode.app()));
   
    bundleSetBuilder.addSeedFiles(seedFiles);
   
    return bundleSetBuilder.createBundleSet();
  }
View Full Code Here

TOP

Related Classes of org.bladerunnerjs.utility.BundleSetBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.