velo/flexmojos — pull request #2 by fredpointzero (2012-04-16 09:24:01+00:00)
Title: Flexmojos 4.x

I updated the pull request as you said.

Forwarded request :

I added a fix and a feature that can be interesting :

1. *Fix:*
When using copy-flex-resources on a war project, the project builder used to get rsls' maven project does not take care of the activated profiles. Now, the war activated profiles are used to process these dependencies, allowing to set the scope of rsls with profiles' properties.

2. *Feature:*
Added a basic flashbuilder configuration generator.
It uses the velocity engine and et slightly modified version of file templates in resources/templates/flexbuilder.
Basicly, it adds swc dependencies to the build path for autocomplete purpose. Moreover, if the artifact is available with a classifier 'sources', the sources will be fetched, unzipped in the local maven repository and linked in the flashbuilder configuration.
Thus developer will can look into the dependency code for debugging purposes.

EDIT:

3. *Fix:*
When compiling test classes, it uses flexmojos.properties to get the version. It gets ths String "${project.version}" and is not resolved. Thus, maven require net.flexmojos.oss:flexmojos-unittest-support:flex:swc:${project.version} as a dependency.

I set the property to 5.1-beta-SNAPSHOT to have the correct dependency.