Examples of Vfs


Examples of com.ibm.sbt.playground.vfs.VFS

        action.updateException(ex,msg);
      }
    } 
  }
  protected int importAssets(ImportSource source, final AsyncAction action) throws Exception {
    VFS vfs=createImportVFS(source);
    VFSFile rootDir=vfs.getRoot();

    AssetBrowser a=new AssetBrowser(rootDir, getNodeFactory()) {
      // Import all the nodes to the DB, regardless of the constraints (endpoints, jslibs...)
      protected boolean includeNode(Properties properties){
        return true;
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.io.VFS

            writer.write(buf);
        }
        reader.close();
        ModuleComplianceVisitor v = new ModuleComplianceVisitor(writer.toString());
        System.out.println("Checking Ceylon vs JS modules...");
        VFS vfs = new VFS();
        TypeChecker tc = new TypeCheckerBuilder().verbose(false)
                .addSrcDirectory(vfs.getFromZipFile(mod)).getTypeChecker();
        tc.process();
        for (PhasedUnit pu : tc.getPhasedUnits().getPhasedUnits()) {
            pu.getCompilationUnit().visit(v);
        }
    }
View Full Code Here

Examples of de.matrixweb.vfs.VFS

      for (final String envName : configFile.getBuildServer().getEnvironments()) {
        final Environment env = configFile.getEnvironments().get(envName);
        final ProcessDescription processDescription = getProcessDescription(env, manifest);

        final ServiceHolder holder = new ServiceHolder();
        holder.vfs = new VFS();
        setupVfs(holder.vfs, env);
        holder.servlet = new Servlet(holder.vfs, this.pipeline, processDescription);
       
        String alias = processDescription.getOutputFile();
        if (alias.contains("{hash}")) {
View Full Code Here

Examples of de.matrixweb.vfs.VFS

    task.setIn(resources.toArray(new String[resources.size()]));
    task.setOut(new String[] { "output.js", "output.css" });
    task.setOptionsDefinition(options);
    final ProcessorFactory processorFactory = new JavaEEProcessorFactory();
    try {
      final VFS vfs = new VFS();
      try {
        vfs.mount(vfs.find("/"), new ServletFile(getServletContext(), "/"));
        this.result = new Pipeline(processorFactory).execute(
            Version.getCurrentVersion(), vfs, new VFSResourceResolver(vfs),
            task);
      } finally {
        vfs.dispose();
      }
    } catch (final IOException e) {
      throw new ServletException("Failed to setup vfs", e);
    } finally {
      processorFactory.dispose();
View Full Code Here

Examples of org.jboss.as.console.client.tools.modelling.workbench.repository.vfs.Vfs

            }
        }, globalContext);

        kernel.setCaching(false);

        this.vfs = new Vfs();

    }
View Full Code Here

Examples of org.jboss.fresh.vfs.VFS

      log.debug("done");
      return;
    }

    Shell sh = getShell();
    VFS vfs = sh.getVFS();
    OutBuffer out = getStdOut();
    FileName fname;
    if (params == null || params.length == 0) {
      fname = new FileName(sh.getEnvProperty("PWD"));
    } else {
      fname = new FileName(sh.getEnvProperty("PWD")).absolutize(params[0]);
    }

    if (vfs.exists(null, fname, false)) {
      out.put("\n Directory of " + fname + "\n\n", 10000L);
      Collection col = vfs.list(null, fname, false);
      Iterator it = col.iterator();

      out.put("                            " + "\t<DIR>" + "\t..\n", 10000L);
      while (it.hasNext()) {
        FileInfo fd = (FileInfo) it.next();
View Full Code Here

Examples of org.jboss.virtual.VFS

  
   public void testGetVFS() throws Exception
   {
      VFSContext context = getVFSContext("simple");
      URI rootURI = context.getRootURI();
      VFS vfs = context.getVFS();
      VirtualFile rootFile = vfs.getRoot();
     
      assertEquals(new URI("vfs" + rootURI), rootFile.toURI());
   }
View Full Code Here

Examples of org.jboss.virtual.VFS

   public void testGetRoot() throws Exception
   {
      VFSContext context = getVFSContext("simple");
      URI rootURI = context.getRootURI();
      VirtualFileHandler rootHandler = context.getRoot();
      VFS vfs = context.getVFS();
      VirtualFile rootFile = vfs.getRoot();
     
      assertEquals(rootURI, rootHandler.toURI());
      assertEquals(rootHandler.getVirtualFile(), rootFile);
   }
View Full Code Here

Examples of org.jboss.virtual.VFS

  
   public void testArchive2() throws Exception
   {
      URL url = getResource("/vfs/sundry/jar/archive.jar");
      url = JarUtils.createJarURL(url);
      VFS vfs = VFS.getVFS(url);
      VirtualFile file = vfs.getRoot();
      log.debug(file.getName() + " " + file);
      assertFalse("Should not be a leaf", file.isLeaf());
      file = file.findChild("empty");
      log.debug(file.getName() + " " + file);
   }
View Full Code Here

Examples of org.jboss.virtual.VFS

      testVisit(context, visitor, expected);
   }
  
   protected void testVisit(MockVFSContext context, MockVirtualFileVisitor visitor, HashSet<String> expected) throws Exception
   {
      VFS vfs = context.getVFS();
      vfs.visit(visitor);
     
      HashSet<String> actual = new HashSet<String>();
      for (VirtualFile file : visitor.getVisited())
         actual.add(file.getPathName());
      assertEquals(expected, actual);
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.