Package flex2.compiler.swc

Examples of flex2.compiler.swc.SwcCache$SwcLRUCache


    {
            // No need to check to see if the appPath is supported again.
      if ((appPath != null && files[i].getName().equals(appPath.getName())) || isSupported(files[i]))
      {
        String name = files[i].getName();
        VirtualFile pathRoot = calculatePathRoot(files[i]);
        if (pathRoot != null)
        {
                    String relativePath = calculateRelativePath(name);
                    String namespaceURI = relativePath.replace('/', '.');
                    String localPart = calculateLocalPart(name);
View Full Code Here


        standardDefs.set(defs);
    }

    public static StandardDefs getStandardDefs()
    {
        StandardDefs defs = standardDefs.get();
        if (defs == null)
        {
            defs = StandardDefs.getStandardDefs("halo");
            setStandardDefs(defs);
        }
View Full Code Here

                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

            }
        }

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

        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

            }
        }

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

            {
                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

            {
                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

          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

                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

TOP

Related Classes of flex2.compiler.swc.SwcCache$SwcLRUCache

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.