Yes, it is a convention! CoC... Flexmojos convetion is include all
sources if user didn't told you otherwise.  The only other alternative
is fail the build with an error saying nothing was specified to be
included, like Flex SDK docs/guidelines.  Try compc.... no include ==
no swc

Still I don't get why are you complaining so much...  don't like
Flexmojos default? FINE! Do any inclusion and the default won't be
triggered....
By any inclusion I mean one of this on your configuration:
http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swc-mojo.html#includeClasses
http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swc-mojo.html#includeFiles
http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swc-mojo.html#includeNamespaces
http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swc-mojo.html#includeSources
http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/compile-swc-mojo.html#includeStylesheet

And you DO NEED includeNamespaces, so what is the deal? Is Flexmojos
doing includeSources even when you do includeClasses? w/o you
specifying it? If that so is a bug on flexmojos.

Including all sources using includeSources is Flexmojos convention.
Flexmojos won't force you do use includeSources, but what do you
expected from FM if you set nothing to be included on your SWC?
Flexmojos do the obvious, if there is a source folder, include it on
SWC....  not my fault if flex compiler is smart enough to detect a
class was included twice but isn't able to deal with that.  Also not
my fault you can't use the includeSource + includeNamespaces options.

I also think is a PITA maintaining includeClasses...  but that is the
way flex compiler is....  you can't say include com.mycompany.* .... I
don't even like this include mechanism,  IMO it should include
everything that is on sourcePaths, don't wanna a file? Easy don't put
that file on the sourcePaths.  But for some reason Adobe does not
think the same way, even having the same pain to maintain this class
inclusion lists, look at flex SDK build...
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/framework/build.xml
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/framework/src/FrameworkClasses.as

On flexmojos 4.0 I made an inclusion/exclusion mechanism that allow to
include/exclude com.mycompany.* ...  but flexmojos 4 is far far away
from being released.  If fact it still far from having the same
resources present at flexmojos 3.x.

Anyway, if you have any suggestion (beside I don't like
includeSources) I'm open for discussion.


VELO

On Dec 24, 11:35 am, Christophe Herreman
<[email protected]> wrote:
> Hi,
>
> is there any specific reason why you made it work like that?
>
> Without knowing anything about the FM internals and objectively speaking, I
> think that it should follow Flex SDK docs/guidelines as much as possible. On
> top of that, it is obviously very cumbersome to have to list and maintain
> these classes manually for big libraries like ours.
>
> regards,
> Christophe
>
> 2009/12/24 velo <[email protected]>
>
>
>
> > On Dec 24, 10:32 am, Christophe Herreman
> > <[email protected]> wrote:
> > > Should we conclude that FM should also use include-classes instead of
> > > include-sources by default?
>
> > No, flexmojos default is include-sources using the same
> > sourcePaths.....
> > If set any other include flexmojos won't do it's default.
>
> > So do include-classes manually.
>
> > VELO
>
> > --
> > 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]<flex-mojos%[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/
>
> --
> Christophe 
> Herremanhttp://www.herrodius.comhttp://www.springactionscript.orghttp://www.as3commons.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?hl=en?hl=en

http://blog.flex-mojos.info/

Reply via email to