On Sun, 2 Dec 2001, Takashi Okamoto wrote:

> Date: Sun, 02 Dec 2001 09:19:37 +0900
> From: Takashi Okamoto <[EMAIL PROTECTED]>
> Reply-To: Tomcat Developers List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: Tomcat Developers List <[EMAIL PROTECTED]>
> Subject: Re: [PATCH] about kjc
>
> Hi, Costin.
>
> At Sat, 1 Dec 2001 09:24:59 -0800 (PST),
> <[EMAIL PROTECTED]> wrote:
> > +1 for the patch, but there's something that bothers me - we are starting
> > to duplicate what's already present in ant. Next we'll have gcj support,
> > etc.
> > How difficult would it be to add an 'ant' compiler adapter, that will just
> > use the ant <javac> task ?
>
> Of cource, using ant is better:) It's good idea.
> It seems not so difficult. You can use Javac or CompilerAdapterFactory
> (and Compiler Adapter) class for it.
>

I looked at this option a little bit a while back, and have only one
concern -- multiple threads trying to compile at the same time.  Ant tasks
generally assume that they don't need to worry about thread safety issues,
so we need to review this code carefully.  (Of course, this issue applies
even more so to the "new" Javac entry point in 1.4 -- it writes error
messages to System.out).

> > And also use the same ant mechansim, a global property - it's
> > possible other tools will need a compiler ( what is cocoon doing ? )
> > ?
>
> I don't know recent Cocoon. But cocoon 1.8.x was using just tomcat's
> JavaCompiler;)
>
> > This would also allow to automatically compile servlets ( the same
> > as jsps are compiled ),
>
> Resin has it already. It's very useful:)
>
> thanks.
> ----
> Takashi Okamoto
>

Craig McClanahan


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to