Reply inline On Thu, Jan 28, 2010 at 10:14, Marvin Froeder <[email protected]> wrote: > Yeap, maven 3 and flex 4.... not that won't be compatible with flex 3, but > focus on 4.... Ok cool
> Well, the deal is on flexmojos 4.x.... > > http://svn.sonatype.org/flexmojos/branches/flexmojos-4.x/ I'll look into this weekend. > For 4.x I changed dramatically the way the compiler works... instead of > using the obsolete and out-to-date flex-compiler-oem, I decided to go dirty > and use Compc and Mxmlc API. To do so, I build a generator that creates > some interfaces that do handle the maven -> String[] conversion... so I can > call Compc/Mxmlc methods and inject the String[] arg to make it work. > > But I have 2 problems with that. First one, logging. Compc/Mxmlc doesn't > allow me to set an logger and redirect the logs to Maven logger. And > pathResolver isn't settable also. > > As alternative I device to manipulate the Compc/Mxmlc bytecode using bcel. > I do change the ThreadLocalToolkit to allow me to set logger and > pathResolver. That does seem ok, but, when I load the dumped class it seems > to be loaded on a different classloader then I expected, resulting in the > execution of the original code (instead of my tampered one). Disclaimer: I haven't look at the source code. But is this a valid alternative: 1. Setting up an log4j equivalent appender concept with whatever logging framework that they use?; or 2. Don't include the expected logging jar in the classpath, instead reimplement the expected logging framework. > Basically I need to change this class: > http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/util/ThreadLocalToolkit.java Ok got it, that means whatever I suggested might not be valid. I'll look into this during weekend. Regards, Edward Yakop -- 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/
