Generate java classes what better ProcessResources or AbstractCompile?

Hi,

I’m using custom language in my project (sqlj) which could be compiled to bytecode in two phases:

first generate java classes by Sqlj library and second compile them by java, what the best parent for my generate task: ProcessResources or AbstractCompile? and what different between?

Thx

Reuse same approach like ANTLR plugin.