Examples of ConfigurationBuffer


Examples of flex2.compiler.config.ConfigurationBuffer

    }
  }

  public static final ConfigurationBuffer getCommandLineConfigurationBuffer(Logger logger, PathResolver resolver, String[] args)
  {
    ConfigurationBuffer cfgbuf = null;
   
        try
        {
      OEMUtil.init(logger, null, null, resolver, null);
     
          cfgbuf = new ConfigurationBuffer(CommandLineConfiguration.class, CommandLineConfiguration.getAliases());
          SystemPropertyConfigurator.load( cfgbuf, "flex" );
          CommandLineConfigurator.parse( cfgbuf, null, args);
        }
        catch (ConfigurationException ex)
        {
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

        return cfgbuf;
  }
 
  public static final ConfigurationBuffer getCompcConfigurationBuffer(Logger logger, PathResolver resolver, String[] args)
  {
    ConfigurationBuffer cfgbuf = null;
   
        try
        {
      OEMUtil.init(logger, null, null, resolver, null);
     
          cfgbuf = new ConfigurationBuffer(CompcConfiguration.class, CompcConfiguration.getAliases());
          SystemPropertyConfigurator.load( cfgbuf, "flex" );
          CommandLineConfigurator.parse( cfgbuf, null, args);
        }
        catch (ConfigurationException ex)
        {
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

  }
 
  private static CompcConfiguration getCompcConfiguration(String[] args)
        throws ConfigurationException, IOException
  {
        ConfigurationBuffer cfgbuf = new ConfigurationBuffer(CompcConfiguration.class,
                                   CompcConfiguration.getAliases());
        cfgbuf.setDefaultVar("include-classes");
        DefaultsConfigurator.loadCompcDefaults( cfgbuf );
        Object obj = Mxmlc.processConfiguration(ThreadLocalToolkit.getLocalizationManager(),
                               "compc",
                               args,
                               cfgbuf,
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

    }
 
  private static CommandLineConfiguration getCommandLineConfiguration(String[] args)
        throws ConfigurationException, IOException
  {
        ConfigurationBuffer cfgbuf = new ConfigurationBuffer(CommandLineConfiguration.class,
                                   CommandLineConfiguration.getAliases());
        cfgbuf.setDefaultVar("file-specs");
        DefaultsConfigurator.loadDefaults( cfgbuf );
        Object obj = Mxmlc.processConfiguration(ThreadLocalToolkit.getLocalizationManager(),
                               "mxmlc",
                               args,
                               cfgbuf,
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

    // expect args to have --file-specs because we need it to find app-specific-config.xml.
    OEMUtil.init(logger, mimeMappings, null, resolver, null);
   
        try
    {
            ConfigurationBuffer cfgbuf = new ConfigurationBuffer(ApplicationCompilerConfiguration.class,
                                       ApplicationCompilerConfiguration.getAliases());
            cfgbuf.setDefaultVar("--file-specs" /*Mxmlc.FILE_SPECS*/);           
            DefaultsConfigurator.loadDefaults(cfgbuf);
            MXMLC mxmlc = new MXMLC();
            mxmlc.configure(args);
            ApplicationCompilerConfiguration configuration = processMXMLCConfiguration(mxmlc.config);
           
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

    // expect no SWC inputs in args.
    OEMUtil.init(logger, mimeMappings, null, resolver, null);
   
        try
    {
            ConfigurationBuffer cfgbuf = new ConfigurationBuffer(LibraryCompilerConfiguration.class,
                                       LibraryCompilerConfiguration.getAliases());
          DefaultsConfigurator.loadOEMCompcDefaults( cfgbuf );
            COMPC compc = new COMPC();
            compc.configure(args);
            LibraryCompilerConfiguration configuration = processCOMPCCConfiguration(compc.config);
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

  {
    OEMUtil.init(logger, mimeMappings, null, resolver, null);
   
        try
    {
            ConfigurationBuffer cfgbuf = new ConfigurationBuffer(ApplicationCompilerConfiguration.class,
                    ApplicationCompilerConfiguration.getAliases());
            cfgbuf.setDefaultVar("--file-specs" /*Mxmlc.FILE_SPECS*/);           
            DefaultsConfigurator.loadDefaults(cfgbuf);
            MXMLC mxmlc = new MXMLC();
            mxmlc.configure(args);
            ApplicationCompilerConfiguration configuration = processMXMLCConfiguration(mxmlc.config);
           
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

    }
  }

  public static final ConfigurationBuffer getCommandLineConfigurationBuffer(Logger logger, PathResolver resolver, String[] args)
  {
    ConfigurationBuffer cfgbuf = null;
   
        try
        {
      OEMUtil.init(logger, null, null, resolver, null);
     
          cfgbuf = new ConfigurationBuffer(CommandLineConfiguration.class, CommandLineConfiguration.getAliases());
          SystemPropertyConfigurator.load( cfgbuf, "flex" );
          CommandLineConfigurator.parse( cfgbuf, null, args);
        }
        catch (ConfigurationException ex)
        {
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

        return cfgbuf;
  }
 
  public static final ConfigurationBuffer getCompcConfigurationBuffer(Logger logger, PathResolver resolver, String[] args)
  {
    ConfigurationBuffer cfgbuf = null;
   
        try
        {
      OEMUtil.init(logger, null, null, resolver, null);
     
          cfgbuf = new ConfigurationBuffer(CompcConfiguration.class, CompcConfiguration.getAliases());
          SystemPropertyConfigurator.load( cfgbuf, "flex" );
          CommandLineConfigurator.parse( cfgbuf, null, args);
        }
        catch (ConfigurationException ex)
        {
View Full Code Here

Examples of flex2.compiler.config.ConfigurationBuffer

        {
            // setup the path resolver
            CompilerAPI.usePathResolver();

            // process configuration
            ConfigurationBuffer cfgbuf = new ConfigurationBuffer(CompcConfiguration.class, CompcConfiguration.getAliases());
            cfgbuf.setDefaultVar("include-classes");
            DefaultsConfigurator.loadCompcDefaults( cfgbuf );
            CompcConfiguration configuration = (CompcConfiguration) Mxmlc.processConfiguration(
                ThreadLocalToolkit.getLocalizationManager(), "compc", s.args, cfgbuf, CompcConfiguration.class, "include-classes");

            CompilerAPI.setupHeadless(configuration);

            if (configuration.benchmark())
            {
                benchmark = CompilerAPI.runBenchmark();
                benchmark.startTime(Benchmark.PRECOMPILE);
            }
            else
            {
                CompilerAPI.disableBenchmark();
            }

            s.sourcePath.clearCache();
            s.bundlePath.clearCache();
            s.resources.refresh();

            // C: We don't really need to parse the manifest files again.
            CompilerConfiguration compilerConfig = configuration.getCompilerConfiguration();
            // note: if Configuration is ever shared with other parts of the system, then this part will need
            // to change, since we're setting a compc-specific setting below
            compilerConfig.setMetadataExport(true);

            NameMappings mappings = CompilerAPI.getNameMappings(configuration);

            Transcoder[] transcoders = WebTierAPI.getTranscoders( configuration );
            SubCompiler[] compilers = WebTierAPI.getCompilers(compilerConfig, mappings, transcoders);

            if (benchmark != null)
            {
                benchmark.benchmark(l10n.getLocalizedTextString(new InitialSetup()));
            }

            // load SWCs
            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.
            // FIXME: why don't we just get rid of these values from the configurator for compc?  That's a problem
            // for include-libraries at least, since this value appears in flex-config.xml
            swcContext.load( compilerConfig.getLibraryPath(),
                             compilerConfig.getExternalLibraryPath(),
                             null,
                             null,
                             mappings,
                             I18nUtils.getTranslationFormat(compilerConfig),
                             s.swcCache );
            configuration.addExterns( swcContext.getExterns() );

            // recompile or incrementally compile...
            boolean recompile = false;
            int newChecksum = cfgbuf.checksum_ts() + swcContext.checksum();

            if (newChecksum != s.checksum)
            {
                ThreadLocalToolkit.logInfo(l10n.getLocalizedTextString(new DetectConfigurationChange()));
                s.checksum = newChecksum;
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.