Seriously, folks. Why do you keep changing the configuration of the runtime-shared-library-path compiler option??
Here’s how you configure a RSL in an ANT build script in Flex 3.3.0. Don’t even get me started on how it took me to figure that out, because this is completely different from what’s in their documentation!!!!!
<runtime-shared-library-path path-element="${FLEX_HOME}/frameworks/libs/datavisualization.swc">
<url rsl-url="${web.root.dir}/lib/flex/${flex.build.number}/datavisualization_${flex.build.number}.swz" />
<url policy-file-url="${web.root.dir}/cross-domain.xml" />
<url rsl-url="${web.root.dir}/lib/flex/${flex.build.number}/datavisualization_${flex.build.number}.swf" />
<url policy-file-url="${web.root.dir}/cross-domain.xml" />
</runtime-shared-library-path>
I downloaded Flex 3.5.0 today and ran my build scripts, and what do I get spit back at me?
[mxmlc] command line: Error: configuration variable ‘runtime-shared-library-path’ requires a value for ‘rsl-url’
So you changed it AGAIN?? Come on!!!
Oh, and where do I find the documentation for how I need to write this configuration in 3.5.0? Nowhere. I just spent 2 hours scouring the Adobe site, and Googling to come up empty. Then I try the following configuration which is what’s in the public, published documentation about RSLs.
<runtime-shared-library-path>
<path-element>${FLEX_HOME}/frameworks/libs/datavisualization.swc</path-element>
<rsl-url>${web.root.dir}/lib/flex/${flex.build.number}/datavisualization_${flex.build.number}.swz</rsl-url>
<policy-file-url>${web.root.dir}/cross-domain.xml</policy-file-url>
<rsl-url>${web.root.dir}/lib/flex/${flex.build.number}/datavisualization_${flex.build.number}.swf</rsl-url>
<policy-file-url>${web.root.dir}/cross-domain.xml</policy-file-url>
</runtime-shared-library-path>
Also doesn’t work.
So now I’m stuck not being able to compile my projects with our build automation tool. Way to go guys.
I’m really fuming about this.
14 Responses for "Come on Flex team. You’re killing me here."
Steve,
Buddy I see you are pointing to web.root.dir,
Did you copy the RSL swz and swf files over to your webroot directory?
-Hem
I don’t think 3.x is much of a priority. While I understand that they had to get 4.0 out, now would be a good time to reinvest some time back into 3.x. We sure as heck aren’t moving to Flex 4 anytime soon, FP10 penetration is still a big issue. That and 4.x will take quite some time to bake in, personally I’ll be excited when we can do full Fx transition but that is years away.
Perhaps this helps
http://devgirl.wordpress.com/2010/04/08/framework-rsls-in-flex-builder-
vs-flash-builder-performance-and-important-info/
@ahmet: I came across that article and it doesn’t help. That configuration is for Flex 4, and I’m trying 3.5.0. Thanks, though.
Sounds like it might just be a documentation bug (i.e. they forgot to), but I’d put a report into http://bugs.adobe.com .
[...] my last post, I expressed frustration with the fact that the MXMLC Ant task choked on the [...]
Try this
Remove the gt and the lt
runtime-shared-library-path
attribute :
path-element=”${FLEX_HOME}/frameworks/libs/framework.swc”
children :
url rsl-url=”framework_YOUR_VERSION.swz”
Same frustration here.
Not the first time I run into inconsistencies between using mxmlc from command-line/additional compiler arguments vs. using in with Ant.
Also, it would help if flex-config.xml configuration options would mach the mxmlc arguments more.
BTW,
Kesasar is partially correct.
Use your original 3.3.0 version, but remove the fail-over swf lines.
It works for me with only one and child.
But I do want to have a fail-over….. :-)
Sorry, XML eaten by the blog:
If you only have one “url rsl-url” child and one “url policy-file-url” child in your 3.3.0 version it works.
This is related:
https://bugs.adobe.com/jira/browse/SDK-25363
They are working on it.
Bingo!
https://bugs.adobe.com/jira/browse/FLEXDOCS-600
Last comment there shows the correct version.
In a nutshell, rsl-url and policy-file-url attributes should be used with the same url element:
url rsl-url=”" policy-file-url=”"
Vitali, you rock! Thanks for the research. Don’t know how I missed it.
Leave a reply