Examples of DuplicateAssetContainerException


Examples of org.bladerunnerjs.model.exception.DuplicateAssetContainerException

public class AppUtility
{

  static <AC extends AssetContainer> AC getImplicitOrExplicitAssetContainer(BRJS brjs, Class<? extends AC> type, AC implicitAssetContainer, AC explicitAssetContainer, boolean preferExplicitDefault) {
    if (implicitAssetContainer.exists() && explicitAssetContainer.exists()) {
      throw new DuplicateAssetContainerException(type.getSimpleName(),
              RelativePathUtility.get(brjs.getFileInfoAccessor(), brjs.dir(), implicitAssetContainer.dir()),
              RelativePathUtility.get(brjs.getFileInfoAccessor(), brjs.dir(), explicitAssetContainer.dir())
      );
    }
    AC assetContainer;
View Full Code Here

Examples of org.bladerunnerjs.model.exception.DuplicateAssetContainerException

  {
    if (technologyName.equals(App.DEFAULT_CONTAINER_NAME)) { 
      return defaultTestTech();
    }
    if (hasSingleDefaultTestTech()) {
      throw new DuplicateAssetContainerException("The test pack at '%s' directly contains test configuration and therefore should not contain sub test tech nodes, yet a named test tech was requested.",
          RelativePathUtility.get(root().getFileInfoAccessor(), root().dir(), dir()) );
    }
    return technologyTestPacks.item(technologyName);
  }
View Full Code Here

Examples of org.bladerunnerjs.model.exception.DuplicateAssetContainerException

  }
 
  public TestPack defaultTestTech()
  {
    if (!hasSingleDefaultTestTech() && !technologyTestPacks.list().isEmpty()) {
      throw new DuplicateAssetContainerException("The test pack at '%s' contains test tech nodes and therefore should not contain a 'deafult' test tech, yet the default test tech node was requested.",
          RelativePathUtility.get(root().getFileInfoAccessor(), root().dir(), dir()) );
    }
    return defaultTestPack.item();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.