Examples of SwcCache


Examples of flex2.compiler.swc.SwcCache

                benchmark.benchmark(l10n.getLocalizedTextString(new InitialSetup()));
            }

            // load SWCs
            CompilerSwcContext swcContext = new CompilerSwcContext();
            SwcCache cache = new SwcCache();
           
            // lazy read should only be set by mxmlc/compc
            cache.setLazyRead(true);

            swcContext.load( compilerConfig.getLibraryPath(),
                             Configuration.getAllExcludedLibraries(compilerConfig, configuration),
                             compilerConfig.getThemeFiles(),
                             compilerConfig.getIncludeLibraries(),
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

            }
        }

        if (data.swcCache == null)
        {
            data.swcCache = new SwcCache();
        }
       
        // load SWCs
        CompilerSwcContext swcContext = new CompilerSwcContext(true);
        try
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

        try
        {
          OEMUtil.init(OEMUtil.getLogger(null, new ArrayList<Message>()), new MimeMappings(), null, null, null);
         
            CompilerSwcContext swcContext = new CompilerSwcContext();
            SwcCache cache = new SwcCache();

            swcContext.load(toVirtualFiles(libraries),
                  new NameMappings(),
                  ".properties",
                  cache);
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

            }
        }

        if (data.swcCache == null)
        {
            data.swcCache = new SwcCache();
        }
       
        // load SWCs
        CompilerSwcContext swcContext = new CompilerSwcContext(true);
        try
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

            {
                benchmark.benchmark(l10n.getLocalizedTextString(new InitialSetup()));
            }

            // load SWCs
            s.swcCache = new SwcCache();
           
            CompilerSwcContext swcContext = new CompilerSwcContext(true);
            swcContext.load( compilerConfig.getLibraryPath(),
                             Configuration.getAllExcludedLibraries(compilerConfig, configuration),
                             compilerConfig.getThemeFiles(),
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

            {
                benchmark.benchmark(l10n.getLocalizedTextString(new InitialSetup()));
            }

            // load SWCs
            s.swcCache = new SwcCache();
           
            CompilerSwcContext swcContext = new CompilerSwcContext(true);
            // for compc the theme and include-libraries values have been purposely not passed in below.
            // This is done because the theme attribute doesn't make sense and the include-libraries value
            // actually causes issues when the default value is used with external libraries.
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

          DigestRootConfiguration rootConfiguration = processConfiguration(cfgbuf, args, l10n);
         
          DigestConfiguration configuration = rootConfiguration.getDigestConfiguration();

          // load SWC
            SwcCache cache = null;
        File libraryFile = null;
            BufferedInputStream libraryInput = null;
          try
          {
            cache = new SwcCache();
            libraryFile = configuration.getRslFile();
            libraryInput = new BufferedInputStream(new FileInputStream(libraryFile));
           
              String[] paths = {configuration.getSwcPath()};
              SwcGroup group = cache.getSwcGroup(paths);
             
              // calculate hash of file and update the catalog.
            long fileLength = libraryFile.length();
           
            if (fileLength > Integer.MAX_VALUE)
            {
              throw new ConfigurationException.FileTooBig(libraryFile.getAbsolutePath(),
                                    "rsl-file", null, 0);
            }
           
              byte[] fileBytes = new byte[(int)fileLength];
              libraryInput.read(fileBytes);
             
              Digest digest = new Digest();
              digest.computeDigest(fileBytes);
              digest.setSigned(configuration.getSigned());
              Swc[] swcs = group.getSwcs().values().toArray(new Swc[1]);
              if (swcs.length != 1)
              {
                throw new IllegalStateException("expecting one swc file, found " + swcs.length); //$NON-NLS-1$
              }
             
              Swc swc = swcs[0];
              swc.setDigest(Swc.LIBRARY_SWF, digest);
             
            // export SWC
              cache.export(swc);

              //confirmation message
              if (ThreadLocalToolkit.errorCount() == 0)
              {
                ThreadLocalToolkit.log(new OutputMessage(swc.getLocation()));
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

                benchmark.benchmark(l10n.getLocalizedTextString(new InitialSetup()));
            }

            // load SWCs
            CompilerSwcContext swcContext = new CompilerSwcContext();
            SwcCache cache = new SwcCache();
           
            // lazy read should only be set by mxmlc/compc
            cache.setLazyRead(true);

            swcContext.load( compilerConfig.getLibraryPath(),
                             Configuration.getAllExcludedLibraries(compilerConfig, configuration),
                             compilerConfig.getThemeFiles(),
                             compilerConfig.getIncludeLibraries(),
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

                                                         String[] dependencyTypesArray,
                                                         boolean minimizeDependencySet)
    {
        Set<String> scriptDependencyTypes = dependencyTypesArray != null ?
                                            new HashSet<String>(Arrays.asList(dependencyTypesArray)) : null;
        SwcCache cache = new SwcCache();
        SwcGroup swcGroup = cache.getSwcGroup(swcs);
        cache.setLazyRead(true);
        SwcDependencyInfoImpl depInfo = new SwcDependencyInfoImpl();        // return value
       
        // map of swcLocations to a map of script names to the scripts
        Map<String, Map<String, SwcScript>> swcDefMap = new HashMap<String, Map<String, SwcScript>>(swcGroup.getNumberLoaded());
       
View Full Code Here

Examples of flex2.compiler.swc.SwcCache

      ThreadLocalToolkit.getBenchmark().benchmark(l10n.getLocalizedTextString(new flex2.tools.Mxmlc.InitialSetup()));
    }

    // load SWCs
    CompilerSwcContext swcContext = new CompilerSwcContext();
    SwcCache cache = new SwcCache();
   
    // lazy read should only be set by mxmlc/compc/asdoc
    cache.setLazyRead(true);
    // for asdoc the theme and include-libraries values have been purposely not passed in below.
    swcContext.load( compilerConfig.getLibraryPath(),
                     compilerConfig.getExternalLibraryPath(),
                     null,
                     null,
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.