0 Replies Latest reply on Mar 26, 2008 2:13 PM by (GordonSmith)

    [svn] 943: Revised Ant scripts for building SWCs, in preparation for having additional locales.

    Level 1
      Revision: 943<br />Author:   gosmith@adobe.com<br />Date:     2008-03-26 15:13:02 -0700 (Wed, 26 Mar 2008)<br /><br />Log Message:<br />-----------<br />Revised Ant scripts for building SWCs, in preparation for having additional locales.<br /><br />1. Each locale-specific directory (such as bundles/en_US) inside a SWC project (such as frameworks/project/framework) no longer has its own Ant script for building the resource SWC for that locale (such as frameworks/locale/en_US/framework_rb.swc). This wouldn't scale well when there are many locales, because the scripts would all be the same except for the locale. So instead, the project's main Ant script (e.g., frameworks/project/framework/build.xml) now handles building both the project's code SWC and all of its associated resource SWCs.<br /><br />2. The .properties files are no longer inside a 'src' subdirectory. For example, core.properties is now at bundles/en_US/core.properties rather than at bundles/en_US/src/core.properties. Otherwise, with the build.xml and build.properties for each locale gone, there would be nothing in a directory like builds/en_US except for 'src'.<br /><br />3. A SWC project's Ant script now uses the custom Ant task <compc>, loaded from the JAR lib/flexTasks.jar that we build, to build its code and resource SWCs.<br /><br />4. A SWC project's Ant script now sets FLEX_HOME, because <compc> requires this.<br /><br />5. All paths within a SWC project's Ant script are now based on either basedir or FLEX_HOME.<br /><br />6. A SWC project no longer requires its own build.properties file. Instead, it loads the top-level build.properties file (i.e., the one in FLEX_HOME). This isn't currently necessary, but it will give us a single place to define properties which can then be used in any project.<br /><br />7. A SWC project with resources now has targets with names such as "en_US" and "ja_JP" for building the associated resource SWCs. They use a <antcall> to a private "bundle" target which expects "locale" to have been set as a parameter.<br /><br />8. setup.sh now sets ANT_OPTS to -Xmx384m to give Ant sufficient heap for building the SDK.<br /><br />Reviewer: Jason<br /><br />Modified Paths:<br />--------------<br />    flex/sdk/trunk/frameworks/build.xml<br />    flex/sdk/trunk/frameworks/projects/airframework/build.xml<br />    flex/sdk/trunk/frameworks/projects/flash-integration/build.xml<br />    flex/sdk/trunk/frameworks/projects/flex/build.xml<br />    flex/sdk/trunk/frameworks/projects/framework/build.xml<br />    flex/sdk/trunk/frameworks/projects/haloclassic/build.xml<br />    flex/sdk/trunk/frameworks/projects/rpc/build.xml<br />    flex/sdk/trunk/frameworks/projects/utilities/build.xml<br />    flex/sdk/trunk/setup.sh<br /><br />Added Paths:<br />-----------<br />    flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/aircontrols.properties<br />    flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/aircontrols.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/SharedResources.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/collections.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/containers.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/controls.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/core.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/effects.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/formatters.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/logging.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/skins.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/states.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/styles.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/utils.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/validators.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/SharedResources.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/collections.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/containers.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/controls.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/core.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/effects.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/formatters.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/logging.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/skins.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/states.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/styles.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/utils.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/validators.properties<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/messaging.properties<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/rpc.properties<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/messaging.properties<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/rpc.properties<br /><br />Removed Paths:<br />-------------<br />    flex/sdk/trunk/frameworks/projects/airframework/build.properties<br />    flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/build.properties<br />    flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/build.xml<br />    flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/src/<br />    flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/build.properties<br />    flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/build.xml<br />    flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/src/<br />    flex/sdk/trunk/frameworks/projects/flash-integration/build.properties<br />    flex/sdk/trunk/frameworks/projects/flex/build.properties<br />    flex/sdk/trunk/frameworks/projects/framework/build.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/build.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/build.xml<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/build.properties<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/build.xml<br />    flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/<br />    flex/sdk/trunk/frameworks/projects/haloclassic/build.properties<br />    flex/sdk/trunk/frameworks/projects/rpc/build.properties<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/build.xml<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/src/<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/build.properties<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/build.xml<br />    flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/src/<br />    flex/sdk/trunk/frameworks/projects/utilities/build.properties<br /><br />Property Changed:<br />----------------<br />    flex/sdk/trunk/frameworks/libs/