0 Replies Latest reply on Jun 24, 2009 7:03 AM by Paul Reilly

    [svn:fx-trunk] 8165: * Customer patch for compiler extension support.

    Paul Reilly Level 1

      Revision: 8165

      Author:   preilly@adobe.com

      Date:     2009-06-24 07:02:59 -0700 (Wed, 24 Jun 2009)

       

      Log Message:

      ***********

      • Customer patch for compiler extension support.

       

      tests Passed: checkintests, junit

       

      Needs QA: YES, there are some customer unit tests that need to be

                integrated into our automated builds.

       

      Needs DOC: YES

       

      Bug fixes: SDK-18718

       

      API Change: Yes, adds new API for compiler extensions

       

      Reviewer: Me

       

      Cycloner: Gaurav

       

      Code-level description of changes:

       

        tools/oem/Application.java

        tools/oem/Library.java

       

          Added runExtensions() and modified build() to call it.

       

        tools/oem/Configuration.java

       

          Added setExtensionLibraries() and addExtensionLibraries().

       

        tools/oem/internal/ConfigurationConstants.java

       

          Added COMPILER_EXTENSIONS constant.

       

        tools/oem/internal/OEMConfiguration.java

       

          Changed args, defaults, more, linker_args, and linker_more from a

          TreeMapAdapter to a Map<String, Object>.

       

          Removed TreeMapAdapter inner class.

       

          Added getExtensions(), setExtensionLibraries(), clone().

       

        tools/Compc.java

       

          Refactored compc(String[] args) by moving the bulk of the logic

          into compc(ConfigurationBuffer cfgbuf, CompcConfiguration

          configuration).

       

        tools/PreLink.java

       

          Modified run() to call run() on each extension.

       

        tools/flexbuilder/BuilderConfiguration.java

       

          Added addExtensionLibraries() and setExtensionLibraries().

       

        tools/CompcConfiguration.java

       

          Added setIncludeSources().

       

        tools/Mxmlc.java

       

          Modified mxmlc() to call run() on each extension.

       

        compiler/CompilerAPI.java

       

          Modified compile() to call run() on each extension.

       

        compiler/common/CompilerConfiguration.java

       

          Added extensionsConfig and getter.

       

        compiler/common/Configuration.java

       

          Added clone().

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-18718

       

      Modified Paths:

      **************

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/CompilerAPI.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Compc.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/CompcConfiguration.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/Mxmlc.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/PreLink.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/flexbuilder/BuilderConfiguration.jav a

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Application.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Configuration.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/Library.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/ConfigurationConstants. java

          flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMConfiguration.java

       

      Added Paths:

      ***********

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/ExtensionManager.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/ExtensionsConfiguratio n.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/IApplicationExtension. java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/ICompcExtension.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/IConfigurableExtension .java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/IExtension.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/ILibraryExtension.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/IMxmlcExtension.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/IPreCompileExtension.j ava

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/IPreLinkExtension.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/util/

          flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/extensions/util/ListMap.java

          flex/sdk/trunk/modules/compiler/src/java/flex2/extensions_en.properties