Examples of file()


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

  public ResponseContent getLocaleForwardingPageContent(BundleSet bundleSet, UrlContentAccessor contentAccessor, String version) throws ContentProcessingException {
    StringWriter localeForwardingPage = new StringWriter();
   
    SdkJsLib localeForwarderLib = app.root().sdkLib(BR_LOCALE_UTILITY_LIBNAME);
    try (Reader localeForwarderReader = new FileReader( localeForwarderLib.file(BR_LOCALE_UTILITY_FILENAME) ) ) {
     
      localeForwardingPage.write("<head>\n");
      localeForwardingPage.write("<noscript><meta http-equiv='refresh' content='0; url=" + app.appConf().getDefaultLocale() + "/'></noscript>\n");
      localeForwardingPage.write("<script type='text/javascript'>\n");
     
View Full Code Here

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

    }
    else if (contentPath.formName.equals(BLADESET_THEME_REQUEST))
    {
      Bladeset bladeset = bundlableNode.app().bladeset(contentPath.properties.get("bladeset"));
      ThemedAssetLocation location = getThemedResourceLocation(bladeset, theme);
      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);
View Full Code Here

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

    else if (contentPath.formName.equals(WORKBENCH_RESOURCE_REQUEST))
    {
      Bladeset bladeset = bundlableNode.app().bladeset(contentPath.properties.get("bladeset"));
      Blade blade = bladeset.blade(contentPath.properties.get("blade"));
      Workbench workbench = blade.workbench();
      resourceFile = workbench.file(resourcePath);
    }
    else if (contentPath.formName.equals(LIB_REQUEST))
    {
      JsLib jsLib = bundlableNode.app().jsLib(contentPath.properties.get("lib"));
      resourceFile = jsLib.file(resourcePath);
View Full Code Here

Examples of org.bladerunnerjs.model.engine.Node.file()

  @Test
  public void fileShouldBeASubPathOfTheGivenDir()
  {
    Node node = new TestNode(mockRootNode, null, new File(TEST_DIR));
   
    assertEquals(new File(node.dir(), "path/to-file").getAbsolutePath(), node.file("path/to-file").getAbsolutePath());
  }
 
  @Test
  public void fileShouldReturnAnUnrootedFileIfDirIsNull()
  {
View Full Code Here

Examples of org.conventionsframework.qualifier.PropertyFile.file()

    @PropertyFile
    public Properties produceProperty(InjectionPoint ip) {

        if (ip.getAnnotated().isAnnotationPresent(PropertyFile.class)) {
            PropertyFile property = ip.getAnnotated().getAnnotation(PropertyFile.class);
            if (!"".endsWith(property.file())) {
                this.loadProperties(property.file());
            }
        }
        return currentProps;
    }
View Full Code Here

Examples of org.conventionsframework.qualifier.PropertyKey.file()

    @PropertyKey
    public String produceKey(InjectionPoint ip) {

        if (ip.getAnnotated().isAnnotationPresent(PropertyKey.class)) {
            PropertyKey property = ip.getAnnotated().getAnnotation(PropertyKey.class);
            this.loadProperties(property.file());
            return currentProps.getProperty(property.key());
        }
        return "";
    }
View Full Code Here

Examples of org.eclipse.jgit.junit.TestRepository.file()

    // Fill dst with a some common history.
    //
    TestRepository d = new TestRepository(dst);
    a = d.blob("a");
    A = d.commit(d.tree(d.file("a", a)));
    B = d.commit().parent(A).create();
    d.update(R_MASTER, B);

    // Clone from dst into src
    //
View Full Code Here

Examples of org.geoserver.platform.resource.Resource.file()

     *
     * @deprecated Unused
     */
    public File findOrResolveDataFile(String... location) throws IOException {
        Resource resource = get(Paths.path("data", Paths.path(location)));
        return resource.file();
    }

    /**
     * Returns a file under the {@link #dataRoot()} directory.
     *
 
View Full Code Here

Examples of org.glassfish.appclient.server.core.jws.servedcontent.StaticContent.file()

            /*
             * No need to actually send the file if the request contains a
             * If-Modified-Since date and the file is not more recent.
             */
            final File fileToSend = sc.file();
            if (fileToSend != null) {
                if (returnIfClientCacheIsCurrent(relativeURIString,
                        gReq, fileToSend.lastModified())) {
                    return;
                }
View Full Code Here

Examples of org.gradle.api.Project.file()

        task.setTargetPlatform(binary.getTargetPlatform());

        task.source(sourceSet.getSource());

        final Project project = task.getProject();
        task.setObjectFileDir(project.file(project.getBuildDir() + "/objs/" + binary.getNamingScheme().getOutputDirectoryBase() + "/" + sourceSet.getFullName()));

        Tool assemblerTool = (Tool) ((ExtensionAware) binary).getExtensions().getByName("assembler");
        task.setAssemblerArgs(assemblerTool.getArgs());

        binary.getTasks().getCreateOrLink().source(task.getOutputs().getFiles().getAsFileTree().matching(new PatternSet().include("**/*.obj", "**/*.o")));
 
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.