Examples of file()


Examples of net.openhft.collections.SharedHashMapBuilder.file()

        //// don't include this, just to check it is as expected.
        assertEquals(8, builder.minSegments());
        //// end of test

        String shmPath = System.getProperty("java.io.tmpdir") + System.getProperty("file.separator") + "SHMTest5";
        SharedHashMap<String, SHMTest5Data> theSharedMap = builder.file(new File(shmPath)).kClass(String.class).vClass(SHMTest5Data.class).create();

        //Now get the shared data object, auto-creating if it's not there
        SHMTest5Data data = DataValueClasses.newDirectReference(SHMTest5Data.class);
        theSharedMap.acquireUsing(TEST_KEY, data);
        //if this was newly created, we need to set the max allowed
View Full Code Here

Examples of org.apache.beehive.netui.compiler.typesystem.util.SourcePosition.file()

    public static File getSourceFile( TypeDeclaration decl, boolean mustBeNonNull )
    {
        decl = getOutermostClass( decl );
        SourcePosition position = decl.getPosition();
        if ( mustBeNonNull ) assert position != null : "no source file for " + decl.toString();
        return position != null ? position.file() : null;
    }
   
    public static class ExtendedAnnotationProcessorEnvironment
            implements AnnotationProcessorEnvironment
    {
View Full Code Here

Examples of org.apache.provisionr.api.software.SoftwareBuilder.file()

            result.addPackage(pkg);
        }

        // Add all the new files
        for (FileEntry entry : files) {
            result.file(entry.getSource(), entry.getDestination());
        }

        // Add all the new custom repositories
        for (RepositoryEntry entry : repositories) {
            result.repository(Repository.builder().name(entry.getId()).key(entry.getKey())
View Full Code Here

Examples of org.apache.spark.storage.FileSegment.file()

    // if getBlockLocation returns null, close the channel
    if (fileSegment == null) {
      //ctx.close();
      return;
    }
    File file = fileSegment.file();
    if (file.exists()) {
      if (!file.isFile()) {
        ctx.write(new FileHeader(0, blockId).buffer());
        ctx.flush();
        return;
View Full Code Here

Examples of org.bladerunnerjs.model.App.file()

    transformations.put("app-name", app.getName());
    try
    {
      TemplateUtility.installTemplate(app, "j2eeify-app", transformations, true );
      String webXmlContents =  IOUtils.toString( ApplicationServerUtils.getDefaultWebXmlResourceLocation() );
      FileUtils.write( app.file("WEB-INF/web.xml") , webXmlContents );
      FileUtils.copyDirectory(brjs.appJars().dir(), app.file("WEB-INF/lib"));
    }
    catch (TemplateInstallationException | IOException ex)
    {
      throw new CommandOperationException(ex);
View Full Code Here

Examples of org.bladerunnerjs.model.Aspect.file()

    }
    else if (contentPath.formName.equals(ASPECT_RESOURCE_REQUEST))
    {
      String aspectName = contentPath.properties.get("aspect");
      Aspect aspect =  bundlableNode.app().aspect(aspectName);
      resourceFile = aspect.file(resourcePath);
    }
    else if (contentPath.formName.equals(BLADESET_THEME_REQUEST))
    {
      Bladeset bladeset = bundlableNode.app().bladeset(contentPath.properties.get("bladeset"));
      ThemedAssetLocation location = getThemedResourceLocation(bladeset, theme);
View Full Code Here

Examples of org.bladerunnerjs.model.AssetLocation.file()

        Workbench workbench = (Workbench) assetContainer;
        Blade blade = workbench.parent();
        Bladeset bladeset = blade.parent();
       
        if (assetLocation instanceof ThemedAssetLocation && assetLocationParentDir.getName().equals("themes")) {
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), assetLocation.file("resources"), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.WORKBENCH_RESOURCE_REQUEST, bladeset.getName(), blade.getName(), resourcePath);
        } else {
          String resourcePath = RelativePathUtility.get(root.getFileInfoAccessor(), workbench.dir(), imageFile);
          targetPath = cssResourceContentPathParser.createRequest(CssResourceContentPlugin.WORKBENCH_RESOURCE_REQUEST, bladeset.getName(), blade.getName(), resourcePath);
        }
View Full Code Here

Examples of org.bladerunnerjs.model.Blade.file()

    }
    else if (contentPath.formName.equals(BLADE_RESOURCE_REQUEST))
    {
      Bladeset bladeset = bundlableNode.app().bladeset(contentPath.properties.get("bladeset"));
      Blade blade = bladeset.blade(contentPath.properties.get("blade"));
      resourceFile = blade.file(resourcePath);
    }
    else if (contentPath.formName.equals(WORKBENCH_THEME_REQUEST))
    {
      //TODO: this needs implementing
      // Workbenches dont have themes ?
View Full Code Here

Examples of org.bladerunnerjs.model.Bladeset.file()

      resourceFile = location.file(resourcePath);
    }
    else if (contentPath.formName.equals(BLADESET_RESOURCE_REQUEST))
    {
      Bladeset bladeset = bundlableNode.app().bladeset(contentPath.properties.get("bladeset"));
      resourceFile = bladeset.file(resourcePath);
    }
    else if (contentPath.formName.equals(BLADE_THEME_REQUEST))
    {
      Bladeset bladeset = bundlableNode.app().bladeset(contentPath.properties.get("bladeset"));
      Blade blade = bladeset.blade(contentPath.properties.get("blade"));
View Full Code Here

Examples of org.bladerunnerjs.model.JsLib.file()

      resourceFile = workbench.file(resourcePath);
    }
    else if (contentPath.formName.equals(LIB_REQUEST))
    {
      JsLib jsLib = bundlableNode.app().jsLib(contentPath.properties.get("lib"));
      resourceFile = jsLib.file(resourcePath);
    }
    else
    {
      throw new ContentProcessingException("Cannot handle request with form name " + contentPath.formName);
    }
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.