Did lzma work in your case? I can't get lzma to work in my case as the
loaded swf file does nothing. Are you using 4.5.20967?


On Jul 7, 1:39 am, Christofer Dutz <[email protected]>
wrote:
> Hey thanks for that configuration ...
>
> using this I was able to reduce the size of my SWFs by again about 50% :-)
>
> I took the liberty to add this to the configuration in my wiki
> (http://dev.c-ware.de/confluence/display/PUBLIC/Optimizing+your+build)
> ... Thanks again ;-)
>
> Chris
>
> 2011/7/6 [email protected] <[email protected]>:
>
>
>
> > Disable optimise task and add this
>
> > <plugin>
> >                                <groupId>com.googlecode.apparat</groupId>
> >                                <artifactId>apparat-maven-plugin</artifactId>
> >                                <version>1.0-RC9</version>
> >                                <dependencies>
> >                                        <dependency>
> >                                                
> > <groupId>com.adobe.flex</groupId>
> >                                                
> > <artifactId>compiler</artifactId>
> >                                                
> > <version>${flex.sdk.version}</version>
> >                                                <type>pom</type>
> >                                                <scope>compile</scope>
> >                                        </dependency>
> >                                        <dependency>
> >                                                
> > <groupId>com.adobe.flex.framework</groupId>
> >                                                
> > <artifactId>playerglobal</artifactId>
> >                                                
> > <version>${flex.sdk.version}</version>
> >                                                <classifier>10.2</classifier>
> >                                                <type>swc</type>
> >                                        </dependency>
> >                                </dependencies>
> >                                <executions>
> >                                        <execution>
> >                                                <id>reducer</id>
> >                                                <goals>
> >                                                        <goal>reducer</goal>
> >                                                        <goal>tdsi</goal>
> >                                                </goals>
> >                                        </execution>
> >                                </executions>
> >                                <configuration>
> >                                        <arguments>
> >                                                <argument>-I</argument>
> >                                        </arguments>
> >                                        <mergeABC>false</mergeABC>
> >                                        <sortCPool>false</sortCPool>
> >                                        <lzma>false</lzma><!-- LZMA does not 
> > work yet -->
> >                                        
> > <matryoshkaType>preloader</matryoshkaType>
> >                                        <mergeCF>false</mergeCF>
> >                                </configuration>
> >                        </plugin>
>
> > On Jul 6, 4:12 am, SiD <[email protected]> wrote:
> >> how do you have it standalone? do you have an example pom?
>
> >> I no longer have problems, I had to disable all optimizations from
> >> apparat
>
> >> <!-- optimization with apparat -->
> >> <optimizeRsl>false</optimizeRsl>>
> >> <reduce>false</reduce>
> >> <reduceMergeABC>false</reduceMergeABC
> >> <reduceMergeCF>false</reduceMergeCF>
> >> <reduceQuality>1.0</reduceQuality>
> >> <reduceSortCPool>false</reduceSortCPool>
>
> >> On Jul 5, 9:30 am, "[email protected]" <[email protected]>
> >> wrote:
>
> >> > If I use apparat standalone this happens but I am able to use the
> >> > integrated flex mojo one as well as the new apparat version into my
> >> > pom without any crashing issues. Only problem I have is lzma(well also
> >> > strip task but I can't see huge gains here anyway)
>
> >> > On Jul 5, 9:58 pm, Christofer Dutz <[email protected]>
> >> > wrote:
>
> >> > > Unfortunately I can't provide you with such a sample pom, as I
> >> > > completely dropped using this approach.
> >> > > But I think I posted everything you need to use that approach ... just
> >> > > make sure to have the main application generate the linkage report and
> >> > > then in your child, you need to add the loadExterns to reference the
> >> > > main application. Then fm should take care of everything.
>
> >> > > Regarding the optimizer-goal. I seem to be unable to use that at all.
> >> > > As soon as I try using it, my build hangs in 50% of my modules. I can
> >> > > read an aparat error message and then flexmojos never quits as it
> >> > > seems to be waiting for something and this will never happen because
> >> > > apparat died in the background :-(
>
> >> > > Chris
>
> >> > > 2011/7/5 [email protected] <[email protected]>:
>
> >> > > > I cant get LZMA compression to work using reduceMatryoshkaType (queit
> >> > > > or preloader).
>
> >> > > > @Christofer: Hi I read the web site link you referred to, can you
> >> > > > provide me an example POM if you have one on how you have configured
> >> > > > the parent module launching sub modules? I have a similar 
> >> > > > requirement,
> >> > > > a main application loads sever other modules. Right now some of the
> >> > > > classes are duplicated into the main application and the individual
> >> > > > modules. Your approach with using link report is neat, just need to
> >> > > > understand how I need to use it.
>
> >> > > > On Jul 5, 7:05 pm, Christofer Dutz <[email protected]>
> >> > > > wrote:
> >> > > >> I have a very similar setup and for me that combination works like 
> >> > > >> a charm ...
> >> > > >> I described my steps 
> >> > > >> here:http://dev.c-ware.de/confluence/display/PUBLIC/Optimizing+your+build
>
> >> > > >> What exactly is not working at runtime?
>
> >> > > >> Chris
>
> >> > > >> 2011/7/5 SiD <[email protected]>:
>
> >> > > >> > Hey,
>
> >> > > >> > I would like to hear if there is any success stories with using 
> >> > > >> > FM4b7
> >> > > >> > in a multi-module with rsl application.
>
> >> > > >> > Just to make sure what I know from my investigation:
>
> >> > > >> > You need to have swfVersion 11 configured:
> >> > > >> > <swfVersion>11</swfVersion>
>
> >> > > >> > To embed fonts/images you need to configure FM4 plugin with 
> >> > > >> > flexmojos-
> >> > > >> > threadlocaltoolkit-wrapper like this:
> >> > > >> > ...
> >> > > >> > <plugin>
> >> > > >> > <groupId>org.sonatype.flexmojos</groupId>
> >> > > >> > <artifactId>flexmojos-maven-plugin</artifactId>
> >> > > >> > <version>${flexmojos-version}</version>
> >> > > >> > <extensions>true</extensions>
> >> > > >> > <dependencies>
> >> > > >> >        <dependency>
> >> > > >> >                <groupId>org.sonatype.flexmojos</groupId>
> >> > > >> >                
> >> > > >> > <artifactId>flexmojos-threadlocaltoolkit-wrapper</artifactId>
> >> > > >> >                <version>${flexmojos-version}</version>
> >> > > >> >        </dependency>
> >> > > >> >        <dependency>
> >> > > >> >                <groupId>com.adobe.flex</groupId>
> >> > > >> >                <artifactId>compiler</artifactId>
> >> > > >> >                <version>${flex-framework-version}</version>
> >> > > >> >                <type>pom</type>
> >> > > >> >                <scope>compile</scope>
> >> > > >> >        </dependency>
> >> > > >> > </dependencies>
> >> > > >> > ...
>
> >> > > >> > Some configuration has changed name from 3.*: compiledLocales is 
> >> > > >> > now
> >> > > >> > localesCompiled, etc.
> >> > > >> >http://repository.sonatype.org/content/sites/flexmojos-site/4.0-SNAPS...
>
> >> > > >> > To create a SWC with a RSL, you need to specify the create-rsl 
> >> > > >> > goal
> >> > > >> > since FM4 does not seem to do it automatically:
> >> > > >> > <execution>
> >> > > >> >        <goals>
> >> > > >> >                <goal>create-rsl</goal>
> >> > > >> >        </goals>
> >> > > >> > </execution>
>
> >> > > >> > If you want the new fonts manager as configured by Flash Builder 
> >> > > >> > add
> >> > > >> > this to the configuration:
> >> > > >> > <fonts>
> >> > > >> >  <advancedAntiAliasing>true</advancedAntiAliasing>
> >> > > >> >  <managers>
> >> > > >> >        <manager-class>flash.fonts.JREFontManager</manager-class>
> >> > > >> >        <manager-class>flash.fonts.BatikFontManager</manager-class>
> >> > > >> >        <manager-class>flash.fonts.AFEFontManager</manager-class>
> >> > > >> >        <manager-class>flash.fonts.CFFFontManager</manager-class>
> >> > > >> >  </managers>
> >> > > >> > </fonts>
>
> >> > > >> > Make sure to use the same ordering in you dependencies for flash
> >> > > >> > frameworks. Here is mine, can not guarantee it will work. This is
> >> > > >> > configured as "caching" for my SWF, you should make sure to use
> >> > > >> > "external" for your SWC.
>
> >> > > >> > <dependency>
> >> > > >> >        <groupId>com.adobe.flex.framework</groupId>
> >> > > >> >        <artifactId>playerglobal</artifactId>
> >> > > >> >        <version>${flex-framework-version}</version>
> >> > > >> >        <classifier>10.2</classifier>
> >> > > >> >        <type>swc</type>
> >> > > >> >        <scope>external</scope>
> >> > > >> > </dependency>
> >> > > >> >  <dependency>
> >> > > >> >         <groupId>com.adobe.flex.framework</groupId>
> >> > > >> >        
>
> ...
>
> read more »

-- 
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