No worries, thanks for the help.  I think I am close when I compare
the output to a 3.5 build output.

On Mar 29, 7:50 pm, Marvin Froeder <[email protected]> wrote:
> <runtime-shared-library-path>
>     <path-element>libs/framework.swc</path-element>
>     <rsl-url>framework_3.0.${build.number}.swz</rsl-url>
>     <policy-file-url></policy-file-url>
>     <rsl-url>framework_3.0.${build.number}.swf</rsl-url>
> </runtime-shared-library-path>
>
> So the path elemente you did get right.
>
> But the rslUrl need some work.  On FM 3.x I used rslUrls and policyFileUrls
> to calculate the rslUrl
>
> http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-sw...http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-sw...
>
> So it is necessary to calculate it.
>
> Sorry for the big delay...
>
> VELO
>
> On Mon, Mar 29, 2010 at 9:53 PM, alpduhuez <[email protected]> wrote:
> > Cool.  So I've cobbled something together from looking @ the 3.5 & 4.0
> > implementations.  Through some log statements looks like I have the
> > right data, but it not showing up in the compiler config correctly.
>
> > Do you know the the values should be for the IRuntimeSharedLibraryPath
> > pathElement & what the key/Value should be for the map?   I have been
> > just trying different combos, here is what I have now where rslUrls is
> > an array of strings formatted like this "flex/
> > framework_3.5.0.12683.swz,,flex/framework_3.5.0.12683.swf".
>
> >  new IRuntimeSharedLibraryPath()
> >                            {
> >                                    public String pathElement()
> >                                    {
> >                                            return
> > dependency.getFile().getAbsolutePath();
> >                                    }
>
> >                                    public Map rslUrl()
> >                                    {
> >                                            Map paths = new TreeMap();
>
> >  paths.put(dependency.getFile().getAbsolutePath(), rslUrls);
> >                                            return paths;
> >                                     }
> >                            }
>
> > On Mar 29, 2:12 pm, Marvin Froeder <[email protected]> wrote:
> > > It is generated, build the flexmojos-flex-compiler project once and it
> > will
> > > be generated....
>
> > > VELO
>
> > > On Mon, Mar 29, 2010 at 6:08 PM, alpduhuez <[email protected]> wrote:
> > > > Okay, I will see if I can help.  I synced up to 4.0.  And looked in
> > > > that class, where is the class
> > > > org.sonatype.flexmojos.compiler.IRuntimeSharedLibraryPath though?  I
> > > > can't seem to find it.  I looked in the compiler project. & grepped
> > > > for it.
>
> > > > thanks.
> > > > -al
>
> > > > On Mar 29, 12:20 pm, Marvin Froeder <[email protected]> wrote:
> > > > > It is easy to do, I didn't because I forgot =D
>
> > > > > I won't be able to play with flexmojos today, neither tomorrow, but
> > > > should
> > > > > be easy....
> > > >http://scm.sonatype.org/showfile.svn?path=/branches/flexmojos-4.x/fle.
> > ..
>
> > > > > Take a look at getExternalLibraryPath() line 1858 to 1872
>
> > > > > It is a matter of doing something similar to
> > getRuntimeSharedLibraryPath
> > > > > ()....
>
> > > > > If you wanna get durty, I will always suggest flexmojos 4, since the
> > code
> > > > is
> > > > > much more decent, but if you don't wanna go that road down and need
> > it
> > > > > really quick, sure go for Optimizer patching.
>
> > > > > Would be nice if you could run optimizer from flexmojos 4.... but I
> > don't
> > > > > think maven allows that....
>
> > > > > VELO
>
> > > > > On Mon, Mar 29, 2010 at 3:58 PM, alpduhuez <[email protected]>
> > wrote:
> > > > > > Ah, okay, I was wondering if that was the case.  That is okay.  I
> > take
> > > > > > it that is a fair amount of work?  Just curious so we can decide if
> > we
> > > > > > want to patch 3.6 Optimize w/ the keepAs3Metadata or wait for RSL
> > > > > > support in FM4.
>
> > > > > > thanks again for the quick replies.
> > > > > > -al
>
> > > > > > On Mar 29, 11:43 am, Marvin Froeder <[email protected]> wrote:
> > > > > > > Ok, now I have one reason to start FM4 RSL support, which isn't
> > > > > > implemented
> > > > > > > so far =/
>
> > > > > > > VELO
>
> > > > > > > On Mon, Mar 29, 2010 at 3:23 PM, alpduhuez <[email protected]>
> > > > wrote:
> > > > > > > > Awesome, the absolute path worked for the styles swf.
>
> > > > > > > > On to the next issue, the next project that builds is one of
> > our
> > > > > > > > common .swcs.  It bombs w/ a bunch of errors which are all
> > about
> > > > > > > > framework classes (e.g ClassFactory, UIComponent,
> > ArrayCollection,
> > > > > > > > ScrollBar, etc).  It seems it is all classes that should be
> > > > referenced
> > > > > > > > as rsls.  I saw that <rslUrls> is now
> > <runtimeSharedLibrarries>.  I
> > > > > > > > changed that in my root pom, but the .swc library still fails
> > with
> > > > the
> > > > > > > > same errors.  It looks like the rsls are configured on the
> > plugin.
> > > > > > > > Here is the last snippet of the output:
>
> > > > > > > > [DEBUG]   (f) resources = [Resource {targetPath: null,
> > filtering:
> > > > > > > > false, FileSet {directory:
> > > > /dude/Source/depot/Service/ui/java/projects/
> > > > > > > > Tsunami/short/flex/shell-core-interfaces/src/main/resources,
> > > > > > > > PatternSet [includes: {}, excludes: {}]}}]
> > > > > > > > [DEBUG]   (f) runtimeSharedLibraries =
> > > > [flex/{artifactId}_{version}.
> > > > > > > > {extension},,flex/{artifactId}_{version}.swf]
> > > > > > > > [DEBUG]   (f) targetDirectory =
> > /dude/Source/depot/Service/ui/java/
> > > > > > > > projects/Tsunami/short/flex/shell-core-interfaces/target
> > > > > > > > [DEBUG]   (f) targetPlayer = 10.0.0
> > > > > > > > [DEBUG]   (f) toolsLocale = en_US
> > > > > > > > [DEBUG] -- end configuration --
> > > > > > > > [INFO] Flexmojos 4.0-SNAPSHOT
> > > > > > > > [INFO]   Apache License - Version 2.0 (NO WARRANTY) - See
> > COPYRIGHT
> > > > > > > > file
> > > > > > > > [DEBUG] Skiping method getToolsLocale.
> > > > > > > > Min version: 4.0.0 Max version:  Current version: 3.5.0.12683
> > > > > > > > [DEBUG] Striping global artifact, source:
> > /dude/.m2/repository/com/
> > > > > > > > adobe/flex/framework/playerglobal/10-3.5.0.12683/
> > > > > > > > playerglobal-10-3.5.0.12683.swc, dest:
> > > > /dude/Source/depot/Service/ui/
>
> > > > java/projects/Tsunami/short/flex/shell-core-interfaces/target/classes/
> > > > > > > > swcs/playerglobal.swc
> > > > > > > > [DEBUG] Expanding:
> > /dude/.m2/repository/com/adobe/flex/framework/
> > > > > > > > framework/3.5.0.12683/framework-3.5.0.12683-configs.zip into
> > /dude/
>
> > > > Source/depot/Service/ui/java/projects/Tsunami/short/flex/shell-core-
> > > > > > > > interfaces/target/classes/configs
> > > > > > > > [DEBUG] expand complete
> > > > > > > > [DEBUG] Compilation arguments:
>
> > > > -output=/dude/Source/depot/Service/ui/java/projects/Tsunami/short/flex/
> > > > > > > > shell-core-interfaces/target/pl-console-flex-shell-core-
> > > > > > > > interfaces-1.1.2-SNAPSHOT.swc
> > > > > > > > -runtime-shared-libraries=flex/{artifactId}_{version}.
> > > > > > > > {extension},,flex/{artifactId}_{version}.swf
>
> > > > -link-report=/dude/Source/depot/Service/ui/java/projects/Tsunami/short/
> > > > > > > > flex/shell-core-interfaces/target/pl-console-flex-shell-core-
> > > > > > > > interfaces-1.1.2-SNAPSHOT-link-report.xml
> > > > > > > > -load-config=
> > > > > > > > -target-player=10.0.0
> > > > > > > > -compiler.debug=true
> > > > > > > > -compiler.external-library-path=/dude/.m2/repository/com/adobe/
> > > > > > > > as3corelib/pl-as3corelib/0.90/pl-as3corelib-0.90.swc
>
> > > > -compiler.external-library-path+=/dude/.m2/repository/com/adobe/flex/
> > > > > > > > framework/flex/3.5.0.12683/flex-3.5.0.12683.swc
>
> > > > -compiler.external-library-path+=/dude/.m2/repository/com/adobe/flex/
> > > > > > > > framework/utilities/3.5.0.12683/utilities-3.5.0.12683.swc
>
> > > > -compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
> > > > > > > > pl-flex-logger/2.1.0/pl-flex-logger-2.1.0.swc
>
> > -compiler.external-library-path+=/dude/.m2/repository/net/comcast/
> > > > > > > > logging/logbook/1.4.01/logbook-1.4.01.swc
>
> > > > -compiler.external-library-path+=/dude/.m2/repository/cim/fx/logging/
> > > > > > > > localconnection-target/1.4.01/localconnection-target-1.4.01.swc
>
> > > > -compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
> > > > > > > > pl-flex-common/2.1.0/pl-flex-common-2.1.0.swc
>
> > > > -compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
> > > > > > > > pl-flex-communication/2.1.0/pl-flex-communication-2.1.0.swc
>
> > > > -compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
> > > > > > > > pl-flex-identity-client/2.2.0/pl-flex-identity-client-2.2.0.swc
>
> > > > -compiler.external-library-path+=/dude/.m2/repository/com/company/flex/
> > > > > > > > pl-flex-access-client/2.0.0/pl-flex-access-client-2.0.0.swc
>
> > > > -compiler.external-library-path+=/dude/Source/depot/Service/ui/java/
>
> > > > projects/Tsunami/short/flex/shell-core-interfaces/target/classes/swcs/
> > > > > > > > playerglobal.swc
> > > > > > > > -compiler.include-libraries=
> > > > > > > > -compiler.library-path=
>
> > -compiler.source-path=/dude/Source/depot/Service/ui/java/projects/
> > > > > > > > Tsunami/short/flex/shell-core-interfaces/src/main/flex
>
> > -compiler.fonts.local-fonts-snapshot=/dude/Source/depot/Service/ui/
>
> > > > java/projects/Tsunami/short/flex/shell-core-interfaces/target/classes/
> > > > > > > > fonts.ser
> > > > > > > > -compiler.headless-server=true
> > > > > > > > -compiler.namespaces.namespacehttp://
> >www.adobe.com/2006/mxml/dude/
>
> > > > Source/depot/Service/ui/java/projects/Tsunami/short/flex/shell-core-
> > > > > > > > interfaces/target/classes/configs/mxml-manifest.xml
> > > > > > > > -compiler.theme=
> > > > > > > > -metadata.date=3/29/10 11:12 AM
> > > > > > > > -metadata.title=FlexShellCoreInterfaces
> > > > > > > > -licenses.license flexbuilder3 1377-4007-0077-6491-1018-3207
> > > > > > > > -include-file=
>
> > > > -include-sources=/dude/Source/depot/Service/ui/java/projects/Tsunami/
> > > > > > > > short/flex/shell-core-interfaces/src/main/flex
>
> ...
>
> read more »

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

http://flexmojos.sonatype.org/

To unsubscribe from this group, send email to 
flex-mojos+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to