[svn] 2716: SDK-15848 - Conditional compilation constants defined in flex-config. xml are never used if a single constant is specified on the command line

Revision: 2716
Author: [email protected]
Date: 2008-08-04 01:18:12 -0700 (Mon, 04 Aug 2008)
Log Message:
SDK-15848 - Conditional compilation constants defined in flex-config.xml are never used if a single constant is specified on the command line
* There's a possibility this will break a conditional complication test which disallows overwriting an existing definition -- I don't know if that will break the build, but the test should be removed either way.
* Using append syntax ("-define+=" on the command line or ant tasks, or append="true" in flex-config) and redefining a value works now if you use an already-defined namespace and name.
* So your flex-config may have -define=CONFIG::debug,false, and you may want -define+=CONFIG::debug,true from the commandline build, or FB build.
* Made the ASC ConfigVar fields final as a sanity check since overwriting is now allowed. It would be harder to track changes and subtle bugs if they were mutable. This means that you must build a new ConfigVar object if you need to make changes.
Bugs: SDK-15848
QA: Yes. Please read the updated javadocs in CompilerConfiguration. Tests need to be added to validate that overwriting is allowed, and happens correctly in different situations: I believe the order should be that flex-config is overwritten by a custom config (can we have more than one user config? is the order deterministic? I forget...), is overwritten by commandline or OEM. Did I miss any? (I didn't write code which changes this, it works however the existing configuration system allows overwriting and appending; if we have tests for that, maybe we don't need them duplicated for this feature.)
Doc: Yes. Please read the updated javadocs in CompilerConfiguration.
Reviewer: Pete
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-15848
http://bugs.adobe.com/jira/browse/SDK-15848
Modified Paths:
flex/sdk/trunk/modules/asc/src/java/macromedia/asc/embedding/ConfigVar.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/tools/oem/internal/OEMConfiguration.java

Please note: I AM USING:
JkOptions ForwardKeySize ForwardURICompat -ForwardDirectories
And that's what's supposed to fix this problem in the first place, right??

Similar Messages

  • Compiler.define in flex-config and compc

    I'm having an issue with compile time constants.  I'd like to define these constants in two places, but when I do the flex compiler forgets constants defined in my flex-config.xml (DEBUG::DEBUGGING and DEBUG::VERBOSE).  I am using flextasks.tasks in ant to build the project.
    In my build.xml:
    <target name="build-project" depends="init">
        <echo message="Building ${proj.swc.file}" />
        <compc output="${proj.target.dir.bin}/${proj.swc.file}"
            target-player="${proj.flashver}">
            <compiler.define name="INFO::VERSION_MAJOR" value="${proj.version.major}" />
            <compiler.define name="INFO::VERSION_MINOR" value="${proj.version.minor}" />
            <compiler.define name="INFO::VERSION_RELEASE" value="${proj.version.release}" />
            <compiler.define name="INFO::BUILD_TIMESTAMP" value="${proj.build.timestamp}" />
            <compiler.define name="INFO::BUILD_TIMEZONE" value="${proj.build.timezone}" />
            <load-config filename="${mx.sdk.dir}/frameworks/flex-config.xml"/>
            <load-config filename="${basedir}/flex-release-config.xml"/>
            <source-path path-element="${proj.build.dir.src}" />
            <include-sources dir="${proj.build.dir.src}" includes="**/*.as **/*.mxml"/>
            <!-- <compiler.external-library-path dir="${proj.build.dir.lib}" includes="*.swc" append="true" /> -->
            <compiler.external-library-path dir="${proj.target.dir.lib}" includes="*.swc" append="true" />
        </compc>
    </target>
    In flex-release-config.xml:
    <flex-config>
        <compiler>
            <debug>false</debug>
            <keep-generated-actionscript>false</keep-generated-actionscript>
            <verbose-stacktraces>false</verbose-stacktraces>
            <optimize>true</optimize>
            <define>
                <!-- Enables debugging mode -->
                <name>DEBUG::DEBUGGING</name>
                <value>false</value>
            </define>
            <define>
                <!-- Provides more information to the developer -->
                <name>DEBUG::VERBOSE</name>
                <value>false</value>
            </define>
        </compiler>
    </flex-config>
    If I compile using compc on the command line I can use -define+=NAME,value and it works.  Why is it not working using the compc task in ant?

    Try adding the append="true" attribute to the define elements. I'm not sure if this will work, but that's how it works (append="true" is the equivalent of +=) for other elements like external libraries.

  • [svn] 3025: Add libs/player/ 10 directory to the library path in the team apps flex-config.xml file.

    Revision: 3025
    Author: [email protected]
    Date: 2008-08-28 11:24:42 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Add libs/player/10 directory to the library path in the team apps flex-config.xml file. This is to matche what's in the flex-config.xml file that comes with the Flex SDK.
    Add libs/player directory to the library path of the flex-config.xml file that is shared by the qa-manaul and qa-regress webapps. This is to match what's in the flex-config.xml file that comes with the sdk.
    Change the call to mxmlc in the compile-swf target in the flexunit build script to set the target player version to 10.0.0.
    Remove web services and http service tests that were removed by Bill from qa feature.properties files otherwise the automated test frameworks will try to run these tests and blow up.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml
    blazeds/trunk/qa/features/full.properties
    blazeds/trunk/qa/features/httpService.properties
    blazeds/trunk/qa/resources/config/flex-config.xml
    Removed Paths:
    blazeds/trunk/qa/features/nist.properties
    blazeds/trunk/qa/features/webService.properties

    Revision: 3025
    Author: [email protected]
    Date: 2008-08-28 11:24:42 -0700 (Thu, 28 Aug 2008)
    Log Message:
    Add libs/player/10 directory to the library path in the team apps flex-config.xml file. This is to matche what's in the flex-config.xml file that comes with the Flex SDK.
    Add libs/player directory to the library path of the flex-config.xml file that is shared by the qa-manaul and qa-regress webapps. This is to match what's in the flex-config.xml file that comes with the sdk.
    Change the call to mxmlc in the compile-swf target in the flexunit build script to set the target player version to 10.0.0.
    Remove web services and http service tests that were removed by Bill from qa feature.properties files otherwise the automated test frameworks will try to run these tests and blow up.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xml
    blazeds/trunk/qa/features/full.properties
    blazeds/trunk/qa/features/httpService.properties
    blazeds/trunk/qa/resources/config/flex-config.xml
    Removed Paths:
    blazeds/trunk/qa/features/nist.properties
    blazeds/trunk/qa/features/webService.properties

  • [svn:osmf:] 13639: Attempt to fix the command line build.

    Revision: 13639
    Revision: 13639
    Author:   [email protected]
    Date:     2010-01-19 14:58:36 -0800 (Tue, 19 Jan 2010)
    Log Message:
    Attempt to fix the command line build.
    Modified Paths:
        osmf/trunk/apps/samples/framework/DynamicStreamingSample/DynamicStreamingSample-build-con fig.xml

    Hi,
    I am  new to this field.
    I imported the strobe media playback to my flash builder.
    I am getting the error
    unknown configuration variable 'swf-version'
    When i imported the strobe media playback in flash builder
    the ADDITIONAL COMPILER ARGUMENTS  in the projec>properties>actionscript compiler>
    was having value
    -swf-version=11 -define CONFIG::LOGGING true -define CONFIG::FLASH_10_1 true
    please help me out

  • JDeveloper 11.1.2.4: Is it possible to only display custom validator IDs defined in faces-config.xml

    I have many custom validators and do not need to see the default values as listed in the below screen shot:
    http://i.imgur.com/xOQgxeZ.png
    Is it possible to only show the custom validators I define within faces-config.xml?
    Thanks,
    Wes

    Deepak,
    don't understand this sentence:
    "Do not specify the binding attribute value in the f:validator tag for the bindings not to display."
    Wes,
    The answer to the question seems to be "no" you cannot suppress the other validator entries as they too are configured in a faces config file - though not the one in the application
    Frank

  • [svn:bz-trunk] 17010: Bug: Watson #2652870 - use a property file to drive the custom configuration tokens as opposed to setting it in the command line

    Revision: 17010
    Revision: 17010
    Author:   [email protected]
    Date:     2010-07-22 02:52:41 -0700 (Thu, 22 Jul 2010)
    Log Message:
    Bug: Watson #2652870 - use a property file to drive the custom configuration tokens as opposed to setting it in the command line
    QA: Yes
    Doc: Yes - in custom tokens section, talk about the new token.file option
    Checkintests: Pass
    Details: Changed TokenReplacer to look for a token.file JVM option. If it's specified (eg. -Dtoken.file=/User/matamel/Desktop/token.properties), then TokenReplacer looks for a properties file where token name and values are specified. This allows someone to specify a file for custom tokens. Custom tokens can still be specified as straight JVM option and in case where a token is defined both as a JVM option and in a token properties file, JVM option takes precedence.
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/config/TokenReplacer.java

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Compile REP file from RDF in the command line

    Is it possible to compile the REP file from an RDF in the command line? If so, do you have a simple example?

    Hi ,
    In 9i, it is rwconverter.exe. Please see Publishing Reports to the Web document available at OTN site.
    &lt;http://otn.oracle.com/docs/products/reports/content.html&gt; and to get more info on how to use rwconverter as command-line refer to "Appendix A" (which would provide information about command-line arguments.
    Hope this helps.
    Thanks,
    Vinod.

  • What are the commands for compiling c++ using the command line tools for xcode?

    Hi, I am taking a class in school for c++ and i would like ot be able to practice at home i found the command line tools for xcode and went ahead and installed it on my computer. now i need to know the commands and procedure to be able to compile and run c++.

    c++ testfile.cc

  • Flex Compiler API Issue: Error: unable to open './flex-config.xml'

    1) I make a java struts(or a servlet) to build swf file
    dynamically when receiving the request from client. The struts
    source code please see the attached code. deploy the structs to the
    Tomcat
    2) then copy the <Flex_SDK>/frameworks to the
    <tomcat_home>/webapps/dozhang/WEB-INF
    3) then copy the all the libraries under the
    <Flex_SDK>/lib to the
    <tomcat_home>/webapps/dozhang/WEB-INF/lib
    4) Copy a test a.mxml to c:\
    5) Start up Tomcat , access the structs, I will get the
    Error: unable to open './flex-config.xml' in the tomcat log.
    Can anyone tell me how to specify the location of the
    flex-config.xml ?

    Ok, I solved it by myself
    I need to add the following codes when calling the Compiler
    API
    Configuration conf = application.getDefaultConfiguration();
    conf.setToken("flexlib", "path to the frameworks")
    applicaiton.setConfiguration(conf);
    Then it solved the problem

  • [svn] 4550: We are now going to allow proxied properties be specified in the component skin .

    Revision: 4550
    Author: [email protected]
    Date: 2009-01-15 17:26:55 -0800 (Thu, 15 Jan 2009)
    Log Message:
    We are now going to allow proxied properties be specified in the component skin. Ryan is to write this up as part of his proxied property communication document.
    This covers the specific case where Thermo would like to have the default itemRenderer used by an FxList control settable in the skin, instead of setting it on the component instance.
    Checkintests: Pass
    Reviewer: Ryan
    Mustella tests: Pass
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxListSkin.mxml

    Revision: 4550
    Author: [email protected]
    Date: 2009-01-15 17:26:55 -0800 (Thu, 15 Jan 2009)
    Log Message:
    We are now going to allow proxied properties be specified in the component skin. Ryan is to write this up as part of his proxied property communication document.
    This covers the specific case where Thermo would like to have the default itemRenderer used by an FxList control settable in the skin, instead of setting it on the component instance.
    Checkintests: Pass
    Reviewer: Ryan
    Mustella tests: Pass
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxList.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxListSkin.mxml

  • [svn:fx-trunk] 11466: For now keep the name of the textLayout rsl the same as it is in flex-config .xml.

    Revision: 11466
    Author:   [email protected]
    Date:     2009-11-05 08:22:15 -0800 (Thu, 05 Nov 2009)
    Log Message:
    For now keep the name of the textLayout rsl the same as it is in flex-config.xml.  Jim will follow behind me and do the necessary build work to keep the name TLF gives it which is textLayout_1.0.0.buildNumber.swf.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer:
    Tests run:
    Is noteworthy for integration: no
    Added Paths:
        flex/sdk/trunk/frameworks/rsls/
        flex/sdk/trunk/frameworks/rsls/textLayout_4.0.0.0.swf

  • Compiling iPhone apps from the command line

    Hi guys,
    Does anyone know how to
    a) Compile and iPhone app.
    b) Run an iPhone app.
    using the command line? My concern is to have a command for each of these steps separately, rather than one for 'compiling and running'.
    Thanks in advance.

    For compiling, take a look at xcodebuild:
    http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/xcodebui ld.1.html

  • Is there any way to compile FLA files into SWF files on the command line?

    I am using Adobe Flash CS4 Professional on Windows XP.  To facilitate automated nightly builds, I have been searching for a way to compile my SWF files from the FLA files under source control, but without luck.  The tools in the Flex SDK looked promising, but we do not use Flex.  Thanks!

    Seen these?

  • Can't print messages located in the bundle defined in faces-config.xml

    In faces-config I have defined the following
    <faces-config>
    <application>
         <message-bundle id="appbundle">org.apache.struts.webapp.example.ApplicationResources</message-bundle>
                   <locale-config>
                   <default-locale>en</default-locale>
                   <supported-locale>ja</supported-locale>
                   <supported-locale>ru</supported-locale>
                   </locale-config>
         </application>
    </faces-config>
    In my jsp I want to print one of the messages in that file keyed "index.login":
    I am trying to do it:
    <h:output_message key="index.logon"/>
    DOESN't WORK ! I get an empty string on the page
    <h:output_message key="index.logon" bundle="appbundle"/>
    DOESN't WORK ! I get an empty string on the page
    What do I do wrong ? (I don;t want to use the fmt:setbundle per page I want to be able to use this 'global' resourcebundle)
    Thanks

    This looks like you're using EA4. Please upgrade to the beta, which has substantially changed the mechanisms for translations.
    -- Adam Winer

  • [svn] 3037: Update flex-config. xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path .

    Revision: 3037
    Author: [email protected]
    Date: 2008-08-29 06:54:15 -0700 (Fri, 29 Aug 2008)
    Log Message:
    Update flex-config.xml files used by the team and qa webapps to use the {targetPlayerMajorVersion} token instead of a hardcoded player version in the library-path and external-library-path. This will allow the correct playerglobal.swc to be located when the target player version is set in the flex-config.xml or passed to mxmlc or compc.
    Modified Paths:
    blazeds/trunk/apps/team/WEB-INF/flex/flex-config.xml
    blazeds/trunk/qa/resources/config/flex-config.xml

    Unfortunately I don't have the
    "org.eclipse.swt.win32.win32.x86_3.1.2.jar" file. On my computer
    the folder is not set up the same way (C:\Program Files\Adobe\Flex
    Builder 2\plugins) instead it is set up as (C:\Program
    Files\Adobe\Flex Builder 2\metadata\plugins) but I've looked in
    everything and that file just isn't in there. I've re downloaded it
    twice. Still not there. Is there anything else i can do.

Maybe you are looking for

  • Creation of colonized part

    Can any one help me in creating Colonized material. As iam giving MFRPN & MFRNR in creation of Material master, for some MFRNR it is creating as cloonized material. EG, MFRPN - Material1 , MFRNR - 1100 Able to create Material1:1100 I have created a n

  • Zimbra 8.0.3_GA_5664.FOSS mail in and out become slow than usual.

    Hi, I am using zcs 8.0.3_GA_5664.FOSS. Few days back i observe that my server working slow than usual. I found that zmconfigd not runnig or sometime running but mail input and output is slow. I google the issue and some people said to change/disable

  • Is there a feature in Audition CS6 similar to Soundtrack Pro's Conform Projects

    Hi All, I'm new to the forums so I applogize if this is a repeat question, I could not find it during my searchs.  I have a video project that I sent from Premiere to Audition, did my sound mix and sent back to Premiere.  There was then a requested c

  • New export declaration after cancellation

    Hello, I've got the following problem and hopefully someone is possible to find a solution to the problem: An export declaration is build by an F2. Afterwards the declaration is cancelled on GTS side manually. The actual status in CUHD field PROST is

  • Security Propogation in MDB

    Hi all, I have a doubt : Now the requirement is like below : A user logins with his credentials and he belongs to a Role ABC. Does a UI Action -> This in turn posts a message to a Queue -> MDB reiceves the message and posts the message to a Topic( Se