Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Avoiding javac in pde build(I want to use a different compiler to compile my sources)
Avoiding javac in pde build [message #516461] Wed, 24 February 2010 05:19
Andrew Eisenberg is currently offline Andrew Eisenberg
Messages: 368
Registered: July 2009
Senior Member
When building plugins (either using a headless build or an export), javac is called to compile all sources in the plugin project. This happens in the @dot target (or some other target for different libraries).

The problem is that I do not want to use javac. I want to use ajc instead.

I am able to use a customBuildCallBack.xml script and calling the ajc task in the post.@dot target. In this, I delete the class files compiled in the @dot target and the recompile. This basically works and I am able compile my aspectj classes along with my java classes.

However, this feels quite hacky since pde is getting compile errors when calling javac (as it should because it can't compile the aspects). This also means that I need to set failOnError to false.

So, is there any way of avoiding the call to javac in the @dot target?

thanks,
--andrew

ps- AJDT does provide its own "Export plugin with AspectJ support", but there are a number of problems with this and I hope to avoid using it.
Previous Topic:Version handling plugin
Next Topic:Avoiding javac in pde build
Goto Forum:
  


Current Time: Thu Oct 23 03:20:11 GMT 2014

Powered by FUDForum. Page generated in 0.01477 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software