incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Сергей aSt Егоров <bsid...@gmail.com>
Subject Re: Compiler Extensions
Date Thu, 19 Apr 2012 16:44:08 GMT
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



-- 
С уважением, Сергей Егоров

Mime
View raw message