You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by da...@bellsouth.net on 2000/04/07 19:00:33 UTC

Using different java compilers with ant

I just started using ant, so there may be an obvious way to do what I
want...

I'd like to be able to override the javac command in ant to use the compiler
that I
specify.  As long as the compiler uses the same syntax as Sun's javac, this
should be
very minor, just replace the name of the command line program.

The reason I want to use this is because I'm using AspectJ, which comes with
it's own
preprocessor/compiler.  (It preprocesses, then calls Sun's javac on the
results).
Do I need to write a new class for this, or is there any easier way?  If I
do need to
write a new class, is there any existing class I should mimic?


Re: Using different java compilers with ant

Posted by Jim Budet <jb...@isochron.com>.
I don't have an answer to your question, however I am very interested in
this. We use Cafe which has a compiler called "sj".

-- 
  Jim Budet (jbudet@isochron.com)

david.boeren@bellsouth.net wrote:
> 
> I just started using ant, so there may be an obvious way to do what I
> want...
> 
> I'd like to be able to override the javac command in ant to use the
> compiler that I specify.  As long as the compiler uses the same
> syntax as Sun's javac, this should be very minor, just replace the
> name of the command line program.
> 
> The reason I want to use this is because I'm using AspectJ, which
> comes with it's own preprocessor/compiler.  (It preprocesses, then
> calls Sun's javac on the results).
> Do I need to write a new class for this, or is there any easier way?
>  If I do need to write a new class, is there any existing class I
> should mimic?