Ok, just do not complain if that option just vanish in the future, because
it will be made read-only.... it is only available due to another bug that I
don't have the time to handle now....

Anyway, if you define includeAsClasses correctly, which you didn't, it will
behave like you wanna.
http://svn.sonatype.org/flexmojos/trunk/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/compiler/LibraryMojo.java

VELO

On Tue, Apr 20, 2010 at 12:14 PM, Brian <[email protected]> wrote:

> That didn't seem to fix the problem.  I tried adding
> <includeAsClasses /> and <includeFiles />, separately, to my config
> but both causes a SWC to be produced with all the contents of src/main/
> resources and a 4K SWF which is unusable.  In your last email were you
> implying to explicitly list the classes I want to go into the SWC?
> Maybe an example of what the config should look like would be helpful.
>
> As a stop gap, I was able to the SWC compiling correctly, but creating
> src/main/embed and adding the following to the config:
>
> <sourcePaths>
>   <path>src/main/flex</path>
>   <path>src/main/embed</path>
> </sourcePaths>
>
> I'd rather not do this however, so any further insight is appreciated.
>
> -Brian
>
> On Apr 20, 11:03 am, Marvin Froeder <[email protected]> wrote:
> > If there is no includes defined flexmojos put everything inside the
> swc....
> >
> > Classes.as compiled classes....
> > And resources using include-files....
> >
> > Set any inclusion and you should be fine... includeAsClasses should do
> the
> > trick.
> >
> > VELO
> >
> >
> >
> > On Tue, Apr 20, 2010 at 11:58 AM, Brian <[email protected]> wrote:
> > > I typically keep all of my image assets in a folder called src/main/
> > > resources/assets for library projects.  In a library where I was
> > > electing to embed every image, I noticed that my SWC size was a bit
> > > bloated.  I checked the artifact size from FlashBuilder and the
> > > artifact produced by FlexMojos and the difference between the two was
> > > roughly the size of all my images located under src/main/resources/
> > > assets.  After checking out the contents of the SWC, I noticed that
> > > the entire contents of src/main/resources folder was included in the
> > > SWC.  I did not notice any compiler directives for "include-file"
> > > during the compile-swc execution, so I'm guessing this is a behavior
> > > in FlexMojos.  Please note, if I moved the assets folder into src/main/
> > > flex, everything compiled correctly, and my SWC size matched the
> > > artifact size from FlashBuilder.
> >
> > > Since FM discourages us from using multiple source-paths as we would
> > > if using the compiler directly, where should we be putting resources
> > > that we want to embed into the SWC but not also include in the
> > > bundle?  Is there a way to disable the inclusion behavior for src/main/
> > > resources but still have it available on the main classpath for
> > > compilation?  I noticed that enableMavenResolver config option, but
> > > that seemed to just make src/main/resources available on the main CP
> > > during compilation; does it also control file inclusion in the bundle?
> >
> > > I'm running FM 3.6.1 with Flex 4 final.  Any insight is appreciated.
> >
> > > -Brian
> >
> > > --
> > > 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]>
> <flex-mojos%[email protected]<flex-mojos%[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]<flex-mojos%[email protected]>
> > For more options, visit this group athttp://
> 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]<flex-mojos%[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/

Reply via email to