@peja - Not sure why the ordering isn't working for ya. I'm not using the caching scope on my dependencies since I haven't mapped my config to use the Adobe managed resources. I'm listing the RSL dependencies with a scope of rsl and using FM 3.5.0. From what I understood Maven doesn't guarantee order on dependencies, but I know the Adobe compilers require the order and once I ordered them in my POM it worked. That's about the extent at which I can help.
As far as mxmlc vs flex-compiler-oem, please understand that mxmlc, amxmlc, compc, acompc, asdoc, etc are all facades based on a series of JARs that ship with the SDK (mxmlc.jar, compc.jar, asdoc.jar, etc). Unless the flex-compiler-oem is a rewrite of Adobe's compiler JARs, which would be a shock to me, it's using these under the hood and just exposing them via a mojo. I could be totally off though, maybe there is a different abstraction being used that I don't understand. Velo -- Could you point us to some documentation re: what peja is referring to? -Brian On a side note, please note On Dec 29, 6:53 pm, peja <[email protected]> wrote: > I set the order of the SWZs via dependencies in the pom, but the build > ignores it and always sets it to 1. framework, 2. rpc, 3. spark, 4. > textLayout. How do you enforce the order? BTW, FlexMojos use the flex- > compiler-oem, not mxmlc. > > Peter > > On 29 Dez., 19:28, Brian <[email protected]> wrote: > > > FWIW - The defaults that changed with Flex 4 were changes in the > > default flex-config.xml that that comes with the SDK that the command- > > line compiler uses (/frameworks/flex-config.xml). static-link-runtime- > > shared-libraries is now set to false and textLayout, framework, spark, > > and rpc are setup as caching RSLs (SWZ extension) pointing to Adobe's > > website with its respective cross domain file. > > > I did a test of FM 3.5.0 with the Flex 4 Beta 2 SDK (4.0.0.10485) to > > see if it behaved the same way as the command compiler with the > > default flex-config.xml. Here is the pom I used: > > > <project xmlns="http://maven.apache.org/POM/4.0.0" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > xsi:schemaLocation="http://maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0..."> > > > <modelVersion>4.0.0</modelVersion> > > > <groupId>test</groupId> > > <artifactId>test</artifactId> > > <version>1.0.0-SNAPSHOT</version> > > <packaging>swf</packaging> > > <name>Flex 4 Test</name> > > > <properties> > > <flexmojos.version>3.5.0</flexmojos.version> > > <flex.sdk.version>4.0.0.10485</flex.sdk.version> > > </properties> > > > <build> > > <sourceDirectory>src/main/flex</sourceDirectory> > > <testSourceDirectory>src/test/flex</testSourceDirectory> > > <plugins> > > <plugin> > > <groupId>org.sonatype.flexmojos</groupId> > > <artifactId>flexmojos-maven-plugin</artifactId> > > <version>${flexmojos.version}</version> > > <extensions>true</extensions> > > <configuration> > > <sourceFile>Main.mxml</sourceFile> > > </configuration> > > <dependencies> > > <dependency> > > <groupId>com.adobe.flex</groupId> > > <artifactId>compiler</artifactId> > > <version>${flex.sdk.version}</version> > > <type>pom</type> > > </dependency> > > </dependencies> > > </plugin> > > </plugins> > > </build> > > > <dependencies> > > <dependency> > > <groupId>com.adobe.flex.framework</groupId> > > <artifactId>flex-framework</artifactId> > > <version>${flex.sdk.version}</version> > > <type>pom</type> > > </dependency> > > </dependencies> > > </project> > > > The output to the compiler is below: > > > [INFO] Flex compiler configurations: > > -compiler.external-library-path /Users/brian.legros/Documents/Adobe > > Flash Builder Beta 2/fmtest/target/classes/libraries/playerglobal.swc > > -compiler.include-libraries= > > -compiler.library-path /Users/brian.legros/.m2/repository/com/adobe/ > > flex/framework/flex/4.0.0.10485/flex-4.0.0.10485.swc /Users/ > > brian.legros/.m2/repository/com/adobe/flex/framework/framework/ > > 4.0.0.10485/framework-4.0.0.10485.swc /Users/brian.legros/.m2/ > > repository/com/adobe/flex/framework/rpc/4.0.0.10485/ > > rpc-4.0.0.10485.swc /Users/brian.legros/.m2/repository/com/adobe/flex/ > > framework/spark/4.0.0.10485/spark-4.0.0.10485.swc /Users/ > > brian.legros/.m2/repository/com/adobe/flex/framework/sparkskins/ > > 4.0.0.10485/sparkskins-4.0.0.10485.swc /Users/brian.legros/.m2/ > > repository/com/adobe/flex/framework/textLayout/4.0.0.10485/ > > textLayout-4.0.0.10485.swc /Users/brian.legros/.m2/repository/com/ > > adobe/flex/framework/utilities/4.0.0.10485/utilities-4.0.0.10485.swc / > > Users/brian.legros/.m2/repository/com/adobe/flex/framework/framework/ > > 4.0.0.10485/framework-4.0.0.10485-en_US.rb.swc /Users/brian.legros/.m2/ > > repository/com/adobe/flex/framework/rpc/4.0.0.10485/rpc-4.0.0.10485- > > en_US.rb.swc /Users/brian.legros/.m2/repository/com/adobe/flex/ > > framework/spark/4.0.0.10485/spark-4.0.0.10485-en_US.rb.swc > > -compiler.accessible=false > > -compiler.allow-source-path-overlap=false > > -compiler.as3=true > > -compiler.debug=false > > -compiler.es=false > > -compiler.fonts.managers flash.fonts.JREFontManager > > flash.fonts.AFEFontManager flash.fonts.BatikFontManager > > flash.fonts.CFFFontManager > > -compiler.fonts.local-fonts-snapshot /Users/brian.legros/Documents/ > > Adobe Flash Builder Beta 2/fmtest/target/classes/fonts.ser > > -compiler.keep-generated-actionscript=false > > -licenses.license flexbuilder235740.displayedStartPageAtLeastOneTime > > true > > -licenses.license flexbuilder3 xxxxxxxxxxxxxxxxxxxxx > > -licenses.license flexbuilder3.displayedFirstLaunchMessage true > > -licenses.license flexbuilder3.displayedStartPageAtLeastOneTime true > > -compiler.locale en_US > > -compiler.optimize=true > > -compiler.source-path /Users/brian.legros/Documents/Adobe Flash > > Builder Beta 2/fmtest/src/main/flex > > -compiler.strict=true > > -use-network=true > > -compiler.verbose-stacktraces=false > > -compiler.actionscript-file-encoding UTF-8 > > -target-player 10.0.0 > > -default-background-color 8821927 > > -default-frame-rate 24 > > -default-script-limits 1000 60 > > -default-size 500 375 > > -compiler.headless-server=false > > -compiler.keep-all-type-selectors=false > > -compiler.use-resource-bundle-metadata=true > > -metadata.date Tue Dec 29 13:04:15 EST 2009 > > -metadata.localized-title Flex 4 Test x-default > > -verify-digests=true > > -compiler.namespaces.namespace+=http://ns.adobe.com/mxml/2009,/Users/ > > brian.legros/Documents/Adobe Flash Builder Beta 2/fmtest/target/ > > classes/config-4.0.0.10485/mxml-2009-manifest.xml > > -compiler.namespaces.namespace+=library://ns.adobe.com/flex/spark,/ > > Users/brian.legros/Documents/Adobe Flash Builder Beta 2/fmtest/target/ > > classes/config-4.0.0.10485/spark-manifest.xml > > -compiler.namespaces.namespace+=library://ns.adobe.com/flex/halo,/ > > Users/brian.legros/Documents/Adobe Flash Builder Beta 2/fmtest/target/ > > classes/config-4.0.0.10485/halo-manifest.xml > > -compiler.namespaces.namespace+=http://www.adobe.com/2006/mxml,/Users/ > > brian.legros/Documents/Adobe Flash Builder Beta 2/fmtest/target/ > > classes/config-4.0.0.10485/halo-manifest.xml -static-link-runtime- > > shared-libraries=false -load-config= > > -metadata.language+=en_US > > > Looks like all of the namespaces come over correctly and static > > linking is set to false (a default for compile-swf), but the 4 SDK > > SWCs which should be used as RSLs by default, are not being included > > as such. It appears as if the default flex-config.xml that comes with > > the SDK isn't overridden based on the configuration to the compile-swf > > goal and the new defaults provided by Adobe aren't available. > > > Since it looks like Adobe pushes changes for defaults for the command- > > line compiler via the default flex-config.xml and air-config.xml files > > that come with the SDK, could the compiler mojos be updated to use > > these defaults so an example POM (like the one above) would compile > > the same way as if using the command-line compilers? What do y'all > > think, should I file a feature request? > > > In terms of this thread, my assumption is that you'll need to specify > > the 4 SDK RSLs as dependencies explicitly as I've had to do on my > > projects to reconstruct the defaults put out by Adobe. Make sure you > > specify them in the correct order as well since the mxmlc.jar that all > > these tools are based on does care about order (1. textLayout, 2. > > framework, 3. spark, 4. rpc). > > > -Brian > > > On Nov 23, 9:03 pm, Logan Allred <[email protected]> wrote: > > > > On Mon, Nov 23, 2009 at 12:11 PM, [email protected] > > > > <[email protected]> wrote: > > > > Hi all, > > > > I've been trying diferent configurations to get textlayout loaded as > > > > caching rsl and , the resulting swf loads spark, rpc and framework as > > > > cached rsl but no chance in getting the textlayout swz loaded (or > > > > being GET to load) > > > > According to > > > this:http://help.adobe.com/en_US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e... > > > > RSLs are enabled by default in Flex 4, including textlayout, so you > > > shouldn't need to do anything to use them. If it's not loading, are > > > you sure you don't already have it cached? Did you clear your flash > > > player assets cache and try it? > > > > Logan -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/
