After switching to use flexmojos 4.0-alpha-4 from flexmojos 3.6.1, only one source path element appears in config report xml, even though there are multiple paths specified in <sourcePaths> in my pom.xml. The same <sourcePaths> works in flexmojos 3.6.1.
I tried commenting out <sourcePaths> didn't fix the problem. I don't find a replacement tag in http://repository.sonatype.org/content/sites/flexmojos-site/4.0-alpha-4/compile-swf-mojo.html My pom.xml has <build> <finalName>app</finalName> <sourceDirectory>src/main/flex</sourceDirectory> .... <plugins> <plugin> <groupId>org.sonatype.flexmojos</groupId> <artifactId>flexmojos-maven-plugin</artifactId> <configuration> .... <sourcePaths> <path>${basedir}/src/main/flex</path> <path>${basedir}/src/main/resources</path> <path>${basedir}/src/main/resources/locale/{locale}</path> </sourcePaths> <localesSourcePath>${basedir}/src/main/resources/locale/ {locale}</localesSourcePath> Config report xml when using flexmojos 4.0-alpha-4 to compile: <source-path> <path-element>/Users/travel/Documents/alpha4/release/portal/ app2/src/main/flex</path-element> </source-path> <source-path> <path-element>/Users/travel/Documents/alpha4/release/portal/ app2/src/main/resources/locale/{locale}</path-element> </source-path> I need to include ${basedir}/src/main/resources in the source-path because I have css files defined under the path. I am getting "Error: Problem finding external stylesheet: style/app.css" error. This is how I include app.css in my code: <s:Application xmlns:s="library://ns.adobe.com/flex/spark" ...> <fx:Style source="style/app.css"/> <fx:Script> ... </fx:Script> </s:Application> I tried the following in my app.mxml as suggested by VELO, non worked <fx:Style source="style/app.css"/> <fx:Style source="@Embed('/style/app.css')"/> ------------ below are the email exchanges on this issue -------- On Tue, Jul 20, 2010 at 6:17 PM, Marvin Froeder <[email protected]> wrote: the problem is that tests nothing.... my final goal is to make an integration tests to make sure this keeps working in the future, so I would need a self validating project with some sort of unit test to make sure.... BTW, keep this discussions on user list. On Tue, Jul 20, 2010 at 10:08 PM, <[email protected]> wrote: <fx:Style source="@Embed('/style/app.css')"/> didn't work neither. An idea to reproduce the problem quicker: Do you have a sample Flex 4 app already for your regular testing? We don't need a real css, it could just be an empty one. The goal is for the compiler to find the css file, correct? Therefore you can just create an empty app.css file, put it in ..../resources/ style/, include <fx:Style source="style/app.css"/> in your app mxml, then compile. I would think you will run into the same problem as I am. Regards, -Anna On Tue, Jul 20, 2010 at 4:56 PM, Marvin Froeder <[email protected]> wrote: File an issue for that. Would be really cool if you give me a sample with a test case (an unit test that will fail if this Style source thing happen to be wrong. I never used that, so I'm not sure how to deal with it.... May be <fx:Style source="@Embed('/style/app.css')"/> -- 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/
