Package de.matrixweb.vfs.wrapped

Examples of de.matrixweb.vfs.wrapped.JavaFile


      if (context.inputZip != null) {
        context.inputZip.delete();
      }
      throw e;
    }
    context.vfs.mount(context.vfs.find("/"), new JavaFile(base));
    context.sourceDir = base;
    return context;
  }
View Full Code Here


              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

        // 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

        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

   * @throws IOException
   */
  @Before
  public void setUp() throws IOException {
    this.vfs = new VFS();
    this.vfs.mount(this.vfs.find("/"), new JavaFile(new File(
        absoluteResourcesPath)));

    this.resolver = new VFSResourceResolver(this.vfs);
  }
View Full Code Here

      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

          }
        }

        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

TOP

Related Classes of de.matrixweb.vfs.wrapped.JavaFile

Copyright © 2018 www.massapicom. 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.