New compiler is way slower....  I have no idea where people get this
improvement scenarios....  flexmojos build got 20% slower just by switching
from flex 3 to flex 4.  I was comparing flexmojos 3 with flexmojos 4
performance and noticed a major drawback there.... then when I make FM3 and
FM4 use the same flex version FM4 resulted in a faster build.

I'm sorry but I have no clue on the problem... may be:
http://flexmojos.sonatype.org/faq.html#9

But from past experience (flex 2 to flex 3) I know this compatibility stuff
doesn't work as well as adobe claim it does.

As a last resort I would say to try flexmojos 4, it may work, who knows....
that oem compiler used on flexmojos 3.x is not really reliable.

VELO

On Tue, Sep 21, 2010 at 6:30 PM, matetnic <[email protected]>wrote:

> We are progressively moving to Flex 4. Our first step was to take
> advantage of the new compiler performance of Flex 4 (40-50%
> improvement in our case), which was accessible using the Flex 3
> compatible mode with no major change to our code.
>
> I'm very curious about which setting is in cause here, as we can build
> this empty application with Flex 3 compatible mode in Flash Builder.
> In the actionScriptProperties file, there is this property:
> flex3CompatMode="true". Anything to do with our problem?
>
> Thank you very much!
>
> On Sep 21, 1:52 pm, Marvin Froeder <[email protected]> wrote:
> > If you wanna a flex 3 app, why don't you build it using flex 3?
> >
> > VELO
> >
> > On Tue, Sep 21, 2010 at 2:44 PM, matetnic <[email protected]
> >wrote:
> >
> >
> >
> > > Hi,
> >
> > > I've tried "mvn install -x" as you suggest, but still no more error
> > > log than what I posted before...
> > > I know you're busy, but would you have some time to test an empty
> > > application with compatibility-version = 3.0.0 ?
> >
> > > Here is my the empty application I'm using :
> >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
> > > </mx:Application>
> >
> > > Here is the configuration I set in my pom.xml :
> >
> > >        <configuration>
> > >          <compatibilityVersion>3.0.0</compatibilityVersion>
> > >        </configuration>
> >
> > > Thank you very much!
> >
> > > On Sep 20, 5:24 pm, Marvin Froeder <[email protected]> wrote:
> > > > try mvn -X then.... but it is a flex compiler output, so must be
> there
> > > > somewere.
> >
> > > > On Mon, Sep 20, 2010 at 6:15 PM, matetnic <
> [email protected]
> > > >wrote:
> >
> > > > > Thanks for quick response. I don't see any other error. Here is
> what I
> > > > > got just before the compile error :
> >
> > > > > ...
> > > > > -metadata.localized-title Test Maven x-default
> > > > > -verify-digests=true
> > > > > -compiler.namespaces.namespace+=http://ns.adobe.com/mxml/2009,C:
> > > > > \Documents and Settings\test\Ado
> > > > > be Flash Builder 4\TestMaven\target\classes
> > > > > \config-4.0.0.14159\mxml-2009-manifest.xml
> > > > > -compiler.namespaces.namespace+=library://
> ns.adobe.com/flex/spark,C:
> > > > > \Documents and Settings\test
> > > > > \Adobe Flash Builder 4\TestMaven\target\classes
> > > > > \config-4.0.0.14159\spark-manifest.xml
> > > > > -compiler.namespaces.namespace+=library://ns.adobe.com/flex/mx,C:
> > > > > \Documents and Settings\test\Ad
> > > > > obe Flash Builder 4\TestMaven\target\classes\config-4.0.0.14159\mx-
> > > > > manifest.xml
> > > > > -compiler.namespaces.namespace+=http://www.adobe.com/2006/mxml,C:
> > > > > \Documents and Settings\test\Ad
> > > > > obe Flash Builder
> 4\TestMaven\target\classes\config-4.0.0.14159\mxml-
> > > > > manifest.xml -static-link-runti
> > > > > me-shared-libraries=false -load-config=
> > > > > -metadata.language+=en_US
> > > > > [INFO]
> >
> > >
> ------------------------------------------------------------------------
> > > > > [ERROR] BUILD ERROR
> > > > > [INFO]
> >
> > >
> ------------------------------------------------------------------------
> > > > > [INFO] Error compiling!
> > > > > [INFO]
> >
> > >
> ------------------------------------------------------------------------
> > > > > [INFO] Trace
> > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Error
> > > > > compiling!
> > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif
> > > ecycleExecutor
> > > > > .java:719)
> > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycl
> > > e(DefaultLifec
> > > > > ycleExecutor.java:556)
> > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLife
> > > cycleExecutor.
> > > > > java:535)
> > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFai
> > > lures(DefaultL
> > > > > ifecycleExecutor.java:387)
> > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Def
> > > aultLifecycleE
> > > > > xecutor.java:348)
> > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycl
> > > eExecutor.java
> > > > > :180)
> > > > >        at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:
> > > > > 328)
> > > > >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:
> > > > > 138)
> > > > >        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> > > > >        at
> > > > >
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:
> > > > > 60)
> > > > >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> > > > >        at
> >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > > > > 39)
> > > > >        at
> >
> > >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
> > > l.java:
> > > > > 25)
> > > > >        at java.lang.reflect.Method.invoke(Method.java:597)
> > > > >        at
> > > > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > > > >        at
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > > > >        at
> > > > >
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > > > >        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > > > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> > > > > compiling!
> > > > >        at
> >
> > >
> org.sonatype.flexmojos.compiler.AbstractCompilerMojo.callCompiler(AbstractC
> > > ompilerMojo.ja
> > > > > va:1141)
> > > > >        at
> >
> > >
> org.sonatype.flexmojos.compiler.AbstractCompilerMojo.run(AbstractCompilerMo
> > > jo.java:
> > > > > 2403)
> > > > >        at
> >
> > >
> org.sonatype.flexmojos.AbstractIrvinMojo.execute(AbstractIrvinMojo.java:
> > > > > 155)
> > > > >        at
> >
> > >
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManag
> > > er.java:
> > > > > 490)
> > > > >         at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif
> > > ecycleExecutor
> > > > > .java:694)
> > > > >        ... 17 more
> > > > > [INFO]
> >
> > >
> ------------------------------------------------------------------------
> > > > > [INFO] Total time: 23 seconds
> > > > > [INFO] Finished at: Mon Sep 20 17:10:07 EDT 2010
> > > > > [INFO] Final Memory: 31M/254M
> > > > > [INFO]
> >
> > >
> ------------------------------------------------------------------------
> >
> > > > > Thanks!
> >
> > > > > On Sep 20, 4:19 pm, Marvin Froeder <[email protected]> wrote:
> > > > > > This is a pure flex output, basically flexcompiler reported you
> code
> > > > > doesn't
> > > > > > compile.  There are more logs before that but, you did cut the
> logs
> > > on
> > > > > the
> > > > > > first line after the actual problem cause.....  look careful to
> your
> > > > > logs,
> > > > > > locate and fix the problem.
> >
> > > > > > VELO
> >
> > > > > > On Mon, Sep 20, 2010 at 5:00 PM, matetnic <
> > > [email protected]
> > > > > >wrote:
> >
> > > > > > > Hi,
> >
> > > > > > > I try to build an empty application with
> > > <compatibilityVersion>3.0.0</
> > > > > > > compatibilityVersion> and I got a compile error. Removing the
> > > > > > > compatibilityVersion tag fixes the problem. Example below.
> >
> > > > > > > Any suggestion?
> > > > > > > Thanks!
> >
> > > > > > > Empty application :
> > > > > > > <?xml version="1.0" encoding="utf-8"?>
> > > > > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
> >
> > > > > > > </mx:Application>
> >
> > > > > > > pom.xml :
> > > > > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > > > > <project xmlns="http://maven.apache.org/POM/4.0.0";
> > > > > > >  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > > > > >  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > > > > >    http://maven.apache.org/maven-v4_0_0.xsd";>
> > > > > > >  <modelVersion>4.0.0</modelVersion>
> >
> > > > > > >  <groupId>com.treasuryofideas</groupId>
> > > > > > >  <artifactId>TestMaven</artifactId>
> > > > > > >  <version>1.0-SNAPSHOT</version>
> > > > > > >  <packaging>swf</packaging>
> >
> > > > > > >  <name>Test Maven</name>
> >
> > > > > > >  <build>
> > > > > > >    <sourceDirectory>src</sourceDirectory>
> >
> > > > > > >    <plugins>
> > > > > > >      <plugin>
> > > > > > >        <groupId>org.sonatype.flexmojos</groupId>
> > > > > > >        <artifactId>flexmojos-maven-plugin</artifactId>
> > > > > > >        <version>3.7.1</version>
> > > > > > >        <extensions>true</extensions>
> > > > > > >        <configuration>
> > > > > > >          <compatibilityVersion>3.0.0</compatibilityVersion>
> > > > > > >        </configuration>
> > > > > > >        <dependencies>
> > > > > > >          <dependency>
> > > > > > >            <groupId>com.adobe.flex</groupId>
> > > > > > >            <artifactId>compiler</artifactId>
> > > > > > >            <version>4.0.0.14159</version>
> > > > > > >            <type>pom</type>
> > > > > > >          </dependency>
> > > > > > >        </dependencies>
> > > > > > >        <executions>
> > > > > > >          <execution>
> > > > > > >            <goals>
> > > > > > >              <goal>wrapper</goal>
> > > > > > >            </goals>
> > > > > > >            <configuration>
> > > > > > >              <parameters>
> > > > > > >                <swf>${build.finalName}</swf>
> > > > > > >                <width>100%</width>
> > > > > > >                <height>100%</height>
> > > > > > >              </parameters>
> > > > > > >            </configuration>
> > > > > > >          </execution>
> > > > > > >        </executions>
> > > > > > >      </plugin>
> > > > > > >    </plugins>
> > > > > > >  </build>
> >
> > > > > > >  <dependencies>
> > > > > > >    <dependency>
> > > > > > >      <groupId>com.adobe.flex.framework</groupId>
> > > > > > >      <artifactId>flex-framework</artifactId>
> > > > > > >      <version>4.0.0.14159</version>
> > > > > > >      <type>pom</type>
> > > > > > >    </dependency>
> > > > > > >  </dependencies>
> >
> > > > > > >  <repositories>
> > > > > > >    <repository>
> > > > > > >      <id>flexmojos</id>
> > > > > > >      <url>
> http://repository.sonatype.org/content/groups/flexgroup/
> > > </
> > > > > > > url>
> > > > > > >    </repository>
> > > > > > >  </repositories>
> >
> > > > > > > </project>
> >
> > > > > > > Error :
> > > > > > > [INFO]
> >
> > >
> ------------------------------------------------------------------------
> > > > > > > [ERROR] BUILD ERROR
> > > > > > > [INFO]
> >
> > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] Error compiling!
> > > > > > > [INFO]
> >
> > >
> ------------------------------------------------------------------------
> > > > > > > [INFO] Trace
> > > > > > > org.apache.maven.lifecycle.LifecycleExecutionException: Error
> > > > > > > compiling!
> > > > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLif
> > > > > ecycleExecutor
> > > > > > > .java:719)
> > > > > > >        at
> >
> > >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycl
> > > > > e(DefaultLifec
> > > > > > > ycleExecutor.java:556)
> > > > > > >        at
> >
> > ...
> >
> > 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]<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