incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bogdan DINU <flex.programm...@gmail.com>
Subject Re: Compiler Extensions
Date Fri, 20 Apr 2012 05:30:24 GMT
Hi Serghei,

thanks for sharing the info about subcompilers - is amazing indeed!

Regards,
Bogdan

On Thu, Apr 19, 2012 at 7:44 PM, Сергей aSt Егоров <bsideup@gmail.com>wrote:

> BTW, i founded way to inject SubCompiler extensions:
>
> public class MyExtension  implements IPreCompileExtension {
>
>        public  static void main(String[] args)
>        {
>        }
>
>        public void run(FileSpec fileSpec, SourceList sourceList,
> Collection<Source> classes, SourcePath sourcePath, ResourceContainer
> resources, ResourceBundlePath bundlePath, CompilerSwcContext
> swcContext, SymbolTable symbolTable, Configuration configuration,
> SubCompiler[] compilers, PreLink preLink, Map licenseMap, List<Source>
> sources) {
>                ((As3Compiler)compilers[0]).addCompilerExtension(new
> MySubCompilerExtension());
>
>  ((MxmlCompiler)compilers[1]).addImplementationCompilerExtension(new
> MySubCompilerExtension());
>        }
> }
>
>
> It's amazing!
>
> On Thu, Apr 19, 2012 at 8:23 PM, Justin Mclean <justin@classsoftware.com>
> wrote:
> > Hi,
> >
> > May also want to take a look at this. Patch for metadata extensions.
> >
> > https://bugs.adobe.com/jira/browse/SDK-26041
> >
> > Thanks,
> > Justin
>
>
>
> --
> С уважением, Сергей Егоров
>



-- 
http://www.badu.ro

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message