Package flex2.compiler.common

Examples of flex2.compiler.common.RuntimeSharedLibrarySettingsConfiguration


    removeUnusedRuntimeSharedLibraryPaths(c.getRemoveUnusedRsls());
   
    List<RslPathInfo> rslList = c.getRslPathInfo();
    boolean first = true;
    for (Iterator<RslPathInfo> iter = rslList.iterator(); iter.hasNext();) {
      RslPathInfo info = (RslPathInfo)iter.next();
      String[] rslUrls = info.getRslUrls().toArray(new String[0]);
      String[] policyUrls = info.getPolicyFileUrls().toArray(new String[0]);
      if (first) {
        setRuntimeSharedLibraryPath(info.getSwcPath(),
            rslUrls,
            policyUrls);
        first = false;
      }
      else {
        addRuntimeSharedLibraryPath(info.getSwcPath(),
            rslUrls,
            policyUrls);
      }
    }
   
View Full Code Here


  }

  private static ApplicationCompilerConfiguration processMXMLCConfiguration(org.apache.flex.compiler.config.Configuration config)
  {
      ApplicationCompilerConfiguration acc = new ApplicationCompilerConfiguration();
        ConfigurationPathResolver resolver = new ConfigurationPathResolver();
      acc.setConfigPathResolver(resolver);
      acc.setBackgroundColor(config.getDefaultBackgroundColor());
      acc.setDebug(config.debug());
      acc.setFrameRate(config.getDefaultFrameRate());
      acc.setHeight(Integer.toString(config.getDefaultHeight()));
View Full Code Here

  {
    List frList = frc.getFrameList();

    for (int i = 0, length = frList == null ? 0 : frList.size(); i < length; i++)
    {
      FrameInfo info = (FrameInfo) frList.get(i);
      setFrameLabel(info.label, toStrings(info.frameClasses));
    }
  }
View Full Code Here

        if ( args == null )
        {
            throw new ConfigurationException.CannotOpen( null, cfgval.getVar(), cfgval.getSource(), cfgval.getLine() );
        }

        PathResolver resolver = new PathResolver();

        if ( resolver == null || configResolver == null )
        {
            throw new ConfigurationException.CannotOpen( null, cfgval.getVar(), cfgval.getSource(), cfgval.getLine() );
        }
View Full Code Here

                e.printStackTrace();
            }
        }
        else
        {
            PathResolver resolver = ThreadLocalToolkit.getPathResolver();
            result = resolver.resolve(path);

            if (result == null && reportError)
            {
                throw new ConfigurationException.IOError(path);
            }
View Full Code Here

                                     Configuration configuration,
                                     Configuration.RslPathInfo info,
                                     Set<String> unusedRsls,
                                     StringBuilder buf) {
        List<String>rslUrls = info.getRslUrls();
        RuntimeSharedLibrarySettingsConfiguration rslSettingsConfig =
            configuration.getRuntimeSharedLibrarySettingsConfiguration();
       
        for (int i = 0; i < rslUrls.size(); i++)
        {
            // start new object
            buf.append("new RSLData(");
            String url = rslUrls.get(i);
            buf.append("\"" + url + "\",\n");

            // write policy url
            buf.append("\"" +
                    info.getPolicyFileUrls().get(i) +
                    "\",\n");
           
            // get the swc for current rsl
            String swcPath = info.getSwcVirtualFile().getName();
            Swc swc = swcContext.getSwc(swcPath);

            // write digest for each rsl in the list
            boolean secureRsls = configuration.getVerifyDigests();
            Boolean isSigned = (Boolean)info.getSignedFlags().get(i);
            Digest digest = swc.getDigest(Swc.LIBRARY_SWF,
                    Digest.SHA_256,
                    isSigned.booleanValue());

            if (digest == null || !digest.hasDigest())
            {
                // if the digest is not available then throw an exception,
                // "No digest found in catalog.xml. Either compile the application with
                // the -verify-digests=false or compile the library with
                // -create-digest=true"
                if (isSigned.booleanValue()) {
                    ThreadLocalToolkit.log(new MissingSignedLibraryDigest(swc.getLocation()));
                }
                else {
                    ThreadLocalToolkit.log(new MissingUnsignedLibraryDigest(swc.getLocation()));
                }
                return;
            }
           
            buf.append("\"" + digest.getValue() + "\",\n");
            buf.append("\"" + digest.getType() + "\",");
            buf.append(info.getSignedFlags().get(i) + ",");
            buf.append(secureRsls + ",");
            buf.append("\"" +  rslSettingsConfig.getApplicationDomain(swcPath) + "\"");
           
            // end of one object in the array
            buf.append(")");

            if (i + 1 < rslUrls.size())
View Full Code Here

                                     Configuration configuration,
                                     Configuration.RslPathInfo info,
                                     Set<String> unusedRsls,
                                     StringBuilder buf) {
        List<String>rslUrls = info.getRslUrls();
        RuntimeSharedLibrarySettingsConfiguration rslSettingsConfig =
            configuration.getRuntimeSharedLibrarySettingsConfiguration();
       
        for (int i = 0; i < rslUrls.size(); i++)
        {
            // start new object
            buf.append("new RSLData(");
            String url = rslUrls.get(i);
            buf.append("\"" + url + "\",\n");

            // write policy url
            buf.append("\"" +
                    info.getPolicyFileUrls().get(i) +
                    "\",\n");
           
            // get the swc for current rsl
            String swcPath = info.getSwcVirtualFile().getName();
            Swc swc = swcContext.getSwc(swcPath);

            // write digest for each rsl in the list
            boolean secureRsls = configuration.getVerifyDigests();
            Boolean isSigned = (Boolean)info.getSignedFlags().get(i);
            Digest digest = swc.getDigest(Swc.LIBRARY_SWF,
                    Digest.SHA_256,
                    isSigned.booleanValue());

            if (digest == null || !digest.hasDigest())
            {
                // if the digest is not available then throw an exception,
                // "No digest found in catalog.xml. Either compile the application with
                // the -verify-digests=false or compile the library with
                // -create-digest=true"
                if (isSigned.booleanValue()) {
                    ThreadLocalToolkit.log(new MissingSignedLibraryDigest(swc.getLocation()));
                }
                else {
                    ThreadLocalToolkit.log(new MissingUnsignedLibraryDigest(swc.getLocation()));
                }
                return;
            }
           
            buf.append("\"" + digest.getValue() + "\",\n");
            buf.append("\"" + digest.getType() + "\",");
            buf.append(info.getSignedFlags().get(i) + ",");
            buf.append(secureRsls + ",");
            buf.append("\"" +  rslSettingsConfig.getApplicationDomain(swcPath) + "\"");
           
            // end of one object in the array
            buf.append(")");

            if (i + 1 < rslUrls.size())
View Full Code Here

        qualifiedTypeSelectors = b;
    }

    public static ConfigurationInfo getQualifiedTypeSelectorsInfo()
    {
        return new AdvancedConfigurationInfo();
    }
View Full Code Here

        qualifiedTypeSelectors = b;
    }

    public static ConfigurationInfo getQualifiedTypeSelectorsInfo()
    {
        return new AdvancedConfigurationInfo();
    }
View Full Code Here

        qualifiedTypeSelectors = b;
    }

    public static ConfigurationInfo getQualifiedTypeSelectorsInfo()
    {
        return new AdvancedConfigurationInfo();
    }
View Full Code Here

TOP

Related Classes of flex2.compiler.common.RuntimeSharedLibrarySettingsConfiguration

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.