Can't say, I never noticed anything like that. AFIK, all flex tools do try to System.exit(), but flexmojos does intercept that and throws an exception (that is correctly handled) preventing the VM from being killed.
VELO On Fri, Aug 20, 2010 at 8:39 PM, Rupert <[email protected]> wrote: > Hi, > I'm using the 4.0-SNAPSHOT so probably hitting SDK 4.1.0.16076. > > I've updated my "simple-flex-modular" from > > http://svn.sonatype.org/flexmojos/branches/flexmojos-4.x/flexmojos-testing/flexmojos-test-harness/projects/concept/ > to build the library as an RSL using <goal>create-rsl</goal>. (after > adding use of the library to the Module and use of the Module to the > app. All worked after this but all merged in then.) > > The RSL builds but I then ran into my old friend "Digest mismatch with > RSL". So enabled "updateSwcDigest" which, although > > http://repository.sonatype.org/content/sites/flexmojos-site/4.0-SNAPSHOT/create-rsl-mojo.html#updateSwcDigest > indicates "doesn't make any sense not do it", seems to be disabled by > default (I /think/). > > When next I build, it ends prematurely with: > > [DEBUG] attempting to optimize: library-1.0-SNAPSHOT.swc > [DEBUG] Backuping original file C:\Users\MyUser\Dev > \FlexMojos4\flexmojos-testing\flexmojos-test-harness\projects\concept > \simple-flex-modular\library\target\library-1.0-SNAPSHOT.swf > [DEBUG] Placing optimized file on target folder > [INFO] Optimization result: 100% > [DEBUG] Compilation arguments: > -rsl-file=C:\Users\MyUser\Dev\FlexMojos4\flexmojos-testing\flexmojos- > test-harness\projects\concept\simple-flex-modular\library\target > \library-1.0-SNAPSHOT.swf > -swc-path=C:\Users\MyUser\Dev\FlexMojos4\flexmojos-testing\flexmojos- > test-harness\projects\concept\simple-flex-modular\library\target > \library-1.0-SNAPSHOT.swc > -signed=false > [INFO] Digest information was updated in C:\Users\MyUser\Dev > \FlexMojos4\flexmojos-testing\flexmojos-test-harness\projects\concept > \simple-flex-modular\library\target\library-1.0-SNAPSHOT.swc > > ...and that's it!!! Nothing else and a successful return code from > mvn ($? = 0). > I'm guessing line 91 in > > http://svn.sonatype.org/flexmojos/branches/flexmojos-4.x/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/plugin/optimizer/RSLCreatorMojo.java > which reads... > > result = > compiler.digest( getDigestConfiguration( input ), > true ).getExitCode(); > > ...is exiting the JVM!? Btw, I have MAVEN_OPTS=-Xmx512m > > I wondered whether the compression stuff could be causing a problem so > tried to disable it all, eventually giving: > > <computeDigests>true</computeDigests> > <updateSwcDigest>true</updateSwcDigest> > > <!-- disable compression tricks --> > <optimizeRsl>false</optimizeRsl> > <reduceMergeABC>false</reduceMergeABC> > <reduce>false</reduce> > <reduceSortCPool>false</reduceSortCPool> > <strip>false</strip> > > (think I got it all -- the log above is from using it, before there > was lots of compression stuff as well) > Result: No change. > > Bit of a loss now. I haven't built FlexMojos from source in order to > try debugging it. Think I'll next try optimizing and digesting my SWC > on the command-line and cheating it into the Maven .m2 repo in the > hope of finding out whether the digesting will solve my digest problem > if I can get passed this odd exit. > > I also noticed > http://repository.sonatype.org/content/sites/flexmojos-site/4.0-SNAPSHOT/plugin-info.html > says "flexmojos:optimize-swf" is "goal is used to produce RSL files." > Should I try that instead? > > All help welcome as always :-) > Rupert. > > p.s. In case someone knows, am I on the right lines with the "Digest > mismatch with RSL" thing? I had the same problem with our FB build > hence trying this command-line fun for determinism. Hint came from > http://www.duzengqiang.com/blog/post/625.html Again, cheers for all > hints! > > -- > 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/
