Transferred from the Adobe Open Source Subversion Repository
Transferred from the Adobe Open Source Subversion Repository

Revision: 943
Author:   gosmith@adobe.com
Date:     2008-03-26T22:13:02.637068Z

Log Message: 
-----------
Revised Ant scripts for building SWCs, in preparation for having additional locales.

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.

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'.

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.

4. A SWC project's Ant script now sets FLEX_HOME, because <compc> requires this.

5. All paths within a SWC project's Ant script are now based on either basedir or FLEX_HOME.

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.

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.

8. setup.sh now sets ANT_OPTS to -Xmx384m to give Ant sufficient heap for building the SDK.

Reviewer: Jason

Modified Paths:
--------------
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/validators.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/validators.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/SharedResources.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/SharedResources.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/utilities/build.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/states.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/states.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/build.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/containers.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/containers.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/rpc/build.properties</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/src</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/rpc/build.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/src/rpc.properties" copyfrom-rev="917" action="A">/flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/rpc.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/haloclassic/build.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/core.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/core.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/build.xml</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/styles.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/styles.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/framework/build.xml</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flex/build.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/skins.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/skins.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/SharedResources.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/SharedResources.properties</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/src</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/utilities/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/utils.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/utils.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/src/rpc.properties" copyfrom-rev="917" action="A">/flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/rpc.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/controls.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/controls.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/flash-integration/build.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/validators.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/validators.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/formatters.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/formatters.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/skins.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/skins.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/collections.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/collections.properties</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/src</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/build.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/utils.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/utils.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/core.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/core.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/setup.sh</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/build.xml</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/collections.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/collections.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/src/messaging.properties" copyfrom-rev="917" action="A">/flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/messaging.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/airframework/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/effects.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/effects.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flex/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/formatters.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/formatters.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/src/logging.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/ja_JP/logging.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/rpc/bundles/ja_JP/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/states.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/states.properties</path>
<path kind="dir" action="M">/flex/sdk/trunk/frameworks/libs</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/build.xml</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/src/messaging.properties" copyfrom-rev="917" action="A">/flex/sdk/trunk/frameworks/projects/rpc/bundles/en_US/messaging.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/containers.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/containers.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/src/aircontrols.properties" copyfrom-rev="917" action="A">/flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/aircontrols.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/build.properties</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/build.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/airframework/bundles/ja_JP/build.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/flash-integration/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/effects.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/effects.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/haloclassic/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/styles.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/styles.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/logging.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/logging.properties</path>
<path kind="dir" action="D">/flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/src</path>
<path kind="file" action="M">/flex/sdk/trunk/frameworks/projects/airframework/build.xml</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/framework/build.properties</path>
<path kind="file" action="D">/flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/build.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/src/aircontrols.properties" copyfrom-rev="917" action="A">/flex/sdk/trunk/frameworks/projects/airframework/bundles/en_US/aircontrols.properties</path>
<path kind="file" copyfrom-path="/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/src/controls.properties" copyfrom-rev="872" action="A">/flex/sdk/trunk/frameworks/projects/framework/bundles/en_US/controls.properties</path>

git-svn-id: 7146a936b37d36e51ea0d66f8acbe0b8281bc7b7@1250880 13f79535-47bb-0310-9956-ffa450edef68

danteinforno/flex-sdk,SlavaRa/flex-sdk,apache/flex-sdk,shyamalschandra/flex-sdk,apache/flex-sdk,adufilie/flex-sdk,shyamalschandra/flex-sdk,SlavaRa/flex-sdk,adufilie/flex-sdk,apache/flex-sdk,adufilie/flex-sdk,shyamalschandra/flex-sdk,danteinforno/flex-sdk,shyamalschandra/flex-sdk,SlavaRa/flex-sdk,shyamalschandra/flex-sdk,danteinforno/flex-sdk,SlavaRa/flex-sdk,danteinforno/flex-sdk,shyamalschandra/flex-sdk,danteinforno/flex-sdk,adufilie/flex-sdk,danteinforno/flex-sdk,SlavaRa/flex-sdk,adufilie/flex-sdk,apache/flex-sdk,SlavaRa/flex-sdk,adufilie/flex-sdk,apache/flex-sdk,apache/flex-sdk