Ok, I will send you the patch then and a out of the two versions for the build.
On Mar 30, 4:04 am, Marvin Froeder <[email protected]> wrote: > The compile scope is the maven default scope. But it has no real meaning on > flex universe. > > So, if you use the default scope, flexmojos will use external-library for > SWC projects and regular library for SWF projects. That is the way it works > right now (FM3), so please don't change that. > > VELO > > > > On Tue, Mar 30, 2010 at 4:57 AM, alpduhuez <[email protected]> wrote: > > It seems there is an issue as well w/ getExternalLibraryPath and > > getLibraryPath. All the dependencies are ending up in external- > > library-path. I moved a scope of COMPILE in the matchers for > > getExternalLibraryPath to getLibraryPath. That cleaned up the former, > > but not they still did not show up in the latter. I've made those > > changes plus rsl ones and have generating the runtime-library-path, > > but no policyFiles. > > > On Mar 29, 9:58 pm, alpduhuez <[email protected]> wrote: > > > I don't see a policyFileUrls property in the > > > AbstractMavenFlexCompilerConfiguration or in the project. Were you > > > planning on this just calculating it & assuming they are > > > crossdomain.xml? > > > > On Mar 29, 8:20 pm, alpduhuez <[email protected]> wrote: > > > > > 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.... > > .. > > > > > > 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 > > ... > > 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.
