Examples of mount()


Examples of com.trendmicro.mist.client.MistClient.mount()

            public void run() {
                MistClient sinkClient = null;
                try {
                    sinkClient = new MistClient(Role.PRODUCER, 1);
                    sinkClient.mount(true, fwdExchange.toString());
                    sinkClient.attach();
                }
                catch(Exception e) {
                    e.printStackTrace();
                    return;
View Full Code Here

Examples of de.matrixweb.vfs.VFS.mount()

    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();
View Full Code Here

Examples of de.matrixweb.vfs.VFS.mount()

              getLog().error(message, e);
            }
          });
          try {
            getLog().info("MVN: Adding " + base + " to VFS");
            vfs.mount(vfs.find("/"), new JavaFile(base));
            final ResourceResolver resolver = new VFSResourceResolver(vfs);
            final Manifest manifest = Manifest.fromConfigFile(configFile);
            final Pipeline pipeline = new Pipeline(processorFactory);
            pipeline.execute(Version.getCurrentVersion(), vfs, resolver,
                manifest, target);
View Full Code Here

Examples of de.matrixweb.vfs.VFS.mount()

        // copyManifest(source);
        final Manifest manifest = getManifest(source);
        executeCallback.execute(manifest, source, target);
        final VFS vfs = new VFS();
        try {
          vfs.mount(vfs.find("/"), new JavaFile(target));
          if (testCallback != null) {
            testCallback.test(vfs, manifest);
          }
        } finally {
          vfs.dispose();
View Full Code Here

Examples of de.matrixweb.vfs.VFS.mount()

        assertTrue(target.mkdir());
        final File source = FileUtils.toFile(this.getClass().getResource(
            "/" + file));
        final VFS vfs = new VFS();
        try {
          vfs.mount(vfs.find("/"), new JavaFile(source));
          final ResourceResolver resolver = new VFSResourceResolver(vfs);
          final Manifest manifest = getManifest(source);
          new Pipeline(processorFactory).execute(Version.getCurrentVersion(),
              vfs, resolver, manifest, target);
          callback.test(vfs, manifest);
View Full Code Here

Examples of de.matrixweb.vfs.VFS.mount()

    try {
      final Field field = vfs.getClass().getDeclaredField("host");
      field.setAccessible(true);
      final String host = (String) field.get(vfs);

      vfs.mount(vfs.find("/"),
          new JavaFile(new File(System.getProperty("java.io.tmpdir"))));
      final ResourceResolver resolver = new VFSResourceResolver(vfs);
      final Resource abc = resolver.resolve("/abc.txt");
      assertThat(abc.getPath(), is("/abc.txt"));
      assertThat(abc.getURL().toString(), is("vfs://" + host + "/abc.txt"));
View Full Code Here

Examples of de.matrixweb.vfs.VFS.mount()

          }
        }

        final VFS vfs = new VFS();
        try {
          vfs.mount(vfs.find("/"), new JavaFile(temp));
          final ResourceResolver resolver = new VFSResourceResolver(vfs);

          final Manifest manifest = Manifest.fromConfigFile(configFile);
          final Pipeline pipeline = new Pipeline(processorFactory);
          pipeline.execute(Version.getCurrentVersion(), vfs, resolver,
View Full Code Here

Examples of io.apigee.trireme.core.Sandbox.mount()

        }

        Sandbox sb = new Sandbox();
        NodeScript script = env.createScript("globalmoduletest.js",
                                             new File("./target/test-classes/tests/globalmoduletest.js"), null);
        sb.mount("/usr/lib/node_modules", "./target/test-classes/global");
        HashMap<String, String> env = new HashMap<String, String>();
        env.put("NODE_PATH", "/usr/lib/node_modules");
        script.setEnvironment(env);
        script.setSandbox(sb);
View Full Code Here

Examples of io.apigee.trireme.core.Sandbox.mount()

            return;
        }

        Sandbox sb = new Sandbox();
        sb.setFilesystemRoot("./target/test-classes");
        sb.mount("/node_modules", "./target/test-classes/global");
        NodeScript script = env.createScript("globalmoduletest.js",
                                             new File("./target/test-classes/tests/globalmoduletest.js"), null);
        HashMap<String, String> env = new HashMap<String, String>();
        // TODO we can't seem to do this for nested paths unless we have every subdirectory there.
        env.put("NODE_PATH", "/node_modules");
View Full Code Here

Examples of io.apigee.trireme.core.internal.PathTranslator.mount()

            System.out.println("Mount is currently not supported on Windows");
            return;
        }
        File realFile = new File("./target/test-classes/global/foo.txt");
        PathTranslator trans = new PathTranslator("./target/test-classes");
        trans.mount("/opt", new File("./target/test-classes/global"));
        File globalFile = trans.translate("/opt/foo.txt");
        assertTrue(globalFile.exists());
        assertEquals(trimPath(realFile.getCanonicalPath()),
                     trimPath(globalFile.getCanonicalPath()));
    }
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.