Well, I was not talking about Flex Modules =D Maven modules... you need a parent project to link your SWC and SWF into the same project. Then you will get what you wanna.
VELO On Fri, Mar 20, 2009 at 8:18 PM, dtornkaew <[email protected]> wrote: > > VELO, > > Sorry if I wasn't clear.... > This is not using Flex Modules but just standard Flex Application and > Flex Library application. > > I have one Flex Application project and one Flex Library project. The > Flex Library project is set as a dependency on my Flex Application. > When I run flexmojos-maven-plugin:flexbuilder it generates > the .actionScriptProperties fine but the libraryPathEntry points to > the SWC in my location maven repository (~/.m2/.../name.swc). This is > what I expected AND works fine but looking through the source code > (line 374 in FlexBuilderMojo.java) it seems like it is capable to make > it link directly to the library project. > > What I want is for the .actionScriptProperties libraryPathEntry to be / > projectName/bin-debug/projectName.swc so that when I make changes in > the library project FlexBuilder will recompile the Flex Application > project. > > In an attempt to get flexmojos-maven-plugin:flexbuilder to hit the "if > ( ideDependency.isReferencedProject() )" statement I added flexmojos- > maven-plugin:flexbuilder to the "clean" phase and ran it with the > embedded Maven plugin in eclipse. Rather than resolving the dependency > path to "/projectName/bin-debug/projectName.swc" it instead resolved > it to "/home/lance/workspace/projectName/target/classes" where > "projectName" is my Flex Library project. > > Thanks! > Lance > > On Mar 20, 5:25 pm, Marvin Froeder <[email protected]> wrote: > > I'm not 100% sure if I understand... you wanna your projects linked (on > > flexbuilder), that is it? > > It will happen when you have a multi modular project and you run > > flexmojos-maven-plugin:flexbuilder > > on root project. > > > > VELO > > > > > > > > > > > > On Fri, Mar 20, 2009 at 7:09 PM, dtornkaew <[email protected]> wrote: > > > > > While looking through the source code I found some further questions: > > > > > In the protected getDependencies function there are some checks to see > > > if the dependency is in the IDE and if it is then it should set the > > > libraryPathEntry to the project location in the IDE example "/ > > > projectName/bin-debug/projectname.swc". > > > > > To make use of this I ran the flexmojos-maven-plugin:flexbuilder using > > > embedded Maven in eclipse and sure enough it picks up the fact that my > > > dependency is indeed open in my workspace and it does set the > > > libraryPathEntry. Problem is that the path end up being "/home/lance/ > > > workspace/mojo3test/projectName/target/classes" > > > > > So my question is how can I get it to hit the "if" statement so that > > > it will create the correct path? > > > > > This is really cool stuff and I am very excited to see some of it > > > working! > > > > > Thanks, > > > Lance > > > --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
