Package org.auraframework.impl.source

Examples of org.auraframework.impl.source.AuraResourcesHashingGroup


        props.store(writer, "Aura framework version information by GenerateJavascript");
        writer.close();

        // resources
        // Create hashing group for aura resources. Doesn't need to parse or generate. Just hash it.
        HashingGroup resourceJs = new AuraResourcesHashingGroup();
        props = new Properties();
        props.setProperty(CompiledGroup.UUID_PROPERTY, resourceJs.getGroupHash().toString());
        props.setProperty(CompiledGroup.LASTMOD_PROPERTY, Long.toString(resourceJs.getLastMod()));
        propertyFile = new File(dest, AuraResourcesHashingGroup.FILE_NAME);
        writer = new FileWriter(propertyFile);
        logger.info("Saving resources version to filesystem");
        props.store(writer, "Aura resources version information by GenerateJavascript");
        writer.close();
View Full Code Here


        }

    }

    protected FileGroup newAuraResourcesHashingGroup() throws IOException {
        return new AuraResourcesHashingGroup(true);
    }
View Full Code Here

        final AuraJavascriptGroup jsGroup = mock(AuraJavascriptGroup.class);
        Hash jsHash = mock(Hash.class);
        when(jsGroup.isStale()).thenReturn(false);
        when(jsGroup.getGroupHash()).thenReturn(jsHash);

        final AuraResourcesHashingGroup resourcesGroup = mock(AuraResourcesHashingGroup.class);
        Hash resourcesHash = mock(Hash.class);
        when(resourcesGroup.isStale()).thenReturn(false);
        when(resourcesGroup.getGroupHash()).thenReturn(resourcesHash);

        ConfigAdapterImpl configAdapter = new ConfigAdapterImpl() {
            @Override
            protected AuraJavascriptGroup newAuraJavascriptGroup() throws IOException {
                return jsGroup;
View Full Code Here

TOP

Related Classes of org.auraframework.impl.source.AuraResourcesHashingGroup

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.