Package org.raptorjs.resources

Examples of org.raptorjs.resources.FileResource


    includeFactory.registerIncludeType("js", IncludeJSTest.class);
    includeFactory.registerIncludeType("4cc", Include4ccTest.class);
    includeFactory.registerIncludeType("less", IncludeLessTest.class);
    PackageManifestJSONLoader loader = new PackageManifestJSONLoader(includeFactory);
    InputStream in = PackageManifestJSONLoaderTest.class.getResourceAsStream("/packaging/test/tablet-web-package.json");
    Resource resource = new FileResource(".", null, new File("."));
    PackageManifest manifest = new PackageManifest();
    manifest.setResource(resource);
    loader.load(manifest, in);
    List<Extension> extensions = manifest.getExtensions();
    assertEquals(extensions.size(), 1);
View Full Code Here

TOP

Related Classes of org.raptorjs.resources.FileResource

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.