Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 38737 invoked from network); 17 Jan 2001 13:18:55 -0000 Received: from relay.lutris.com (63.104.189.21) by h31.sny.collab.net with SMTP; 17 Jan 2001 13:18:55 -0000 Received: (from root@localhost) by relay.lutris.com (8.9.3/8.9.3) id FAA29740 for ; Wed, 17 Jan 2001 05:23:22 -0800 Received: from mail01.lutris.com (mail [63.104.189.54]) by relay.lutris.com (8.9.3/8.9.3) with ESMTP id FAA29653 for ; Wed, 17 Jan 2001 05:23:22 -0800 Received: from lutris.com ([10.10.50.132]) by mail01.lutris.com (Netscape Messaging Server 4.15) with ESMTP id G7B6B200.CQO; Wed, 17 Jan 2001 05:18:38 -0800 Message-ID: <3A659BEE.FC1D5D5C@lutris.com> Date: Wed, 17 Jan 2001 05:19:42 -0800 From: Ioan Mitrea X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: ant-dev@jakarta.apache.org Subject: Re: aspectJ task ? References: <20010115213951.15247.qmail@web113.yahoomail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Thanks, So, as far as I understand, in the current code, I would have to add an ajc.java file in the compilers package which would extend DefaultCompilerAdaptor. Basicallly I can copy paste the code from the Javac12 or Javac13 adaptors with a few changes if the command line options supported by ajc and javac are different. Did I get it right ? The task uses the build.compiler property to get a CompilerAdaptor and that property is set for the whole project file, there is no way to reset it to another value for the scope of a certain target. So that means that I am "stuck" with the same compiler for all the java files in my tree ? If I want, for some wierd reason, to compiler part of some tree with a different compiler than the rest, then I have to do it in 2 steps, with two different project files: In the first project I compile some files with javac then I change the build.compiler property in .ant.properties and then I run thesecond project in which i define another fileset attribute for the javac target and i use ajc as loaded from build.compiler/ Does this make sense, or I just have to get 2 separate complete trees , one compiled with javac and one witj ajc ? Ioan Diane Holt wrote: > > --- Ioan Mitrea wrote: > > Should I write a task which extends the task with an attribute > > which can point to ajc or javac? > > Or should the javac task itself be modified to support this ? > > Depends on whether you're running Ant 1.2 or latest CVS. In Ant 1.2, you'd > add the 'ajc' support to Javac.java (see the 'jikes' and 'jvc' compilers > for examples). For latest CVS, the task has been reworked to allow > other compiler support in a different way -- see both Javac.java and the > "compilers" subdirectory, in: > http://jakarta.apache.org/cvsweb/index.cgi/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/ > > Diane > > ===== > (holtdl@yahoo.com) > > __________________________________________________ > Do You Yahoo!? > Get email at your own domain with Yahoo! Mail. > http://personal.mail.yahoo.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org > For additional commands, e-mail: ant-dev-help@jakarta.apache.org