We're doing nothing wrong, and we're not "abusing" source paths. The Flex compiler requires that resources like .css files, images, fonts, etc., in addition to ActionScript and MXML code, be on the *source path* when it compiles. This is not a requirement that the Java compiler has, by comparison. As a result, we have a choice: Either we stuff *everything* into src/main/flex so we can play nicely with the 1 source path FlexMojos has by default, since even src/main/resources is not included as a sourcePath by default, or we use the build helper plugin to add additional sourcePaths, allowing us to separate our various resources out in a sensible, clear manner that is readily intuitive to all of the developers on the project. It's a decision that was imposed by the realities of the Flex compiler, and is reinforced and supported by the same. Please know, if the Flex compiler did not function the way it does, we wouldn't have to muck with source paths to allow us to have a clean project layout. Achieving the separation we want on a Java project is trivial, and doesn't require a lot of sourcePaths. Unfortunately, on Flex, that's not the case.
Bryan Turner On Sun, Feb 13, 2011 at 12:39 PM, Marvin Froeder <[email protected]> wrote: > You are doing something seriously wrong if you need to abuse of extra > source paths like that.... just dunno what. > > Sent from Android > > Em 13/02/2011 15:26, "Bryan Turner" <[email protected]>escreveu: > > > Apologies, it looks like the tag is like this: > <sources> > <source>src/main/assets</source> > <source>src/main/fonts</source> > <source>src/main/resources/locale/shared</source> > <source>src/main/resources/locale/en_US</source> > <source>src/main/styles</source> > </sources> > > Been a while since I had to set all of that up. > > Bryan Turner > > On Sun, Feb 13, 2011 at 12:23 PM, Bryan Turner <[email protected]> > wrote: > > > > I don't think he w... > > -- > 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/ > -- 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/
