Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 47087 invoked from network); 25 Feb 2005 18:25:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 25 Feb 2005 18:25:31 -0000 Received: (qmail 2432 invoked by uid 500); 25 Feb 2005 18:25:29 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 2393 invoked by uid 500); 25 Feb 2005 18:25:29 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 2377 invoked by uid 99); 25 Feb 2005 18:25:29 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.126.186) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 25 Feb 2005 10:25:28 -0800 Received: from dyndsl-080-228-179-245.ewe-ip-backbone.de[80.228.179.245] (helo=[192.168.1.2]) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKxQS-1D4k9U3XlI-0006R6; Fri, 25 Feb 2005 19:25:24 +0100 From: Robert Virkus Organization: Enough Software To: "Ant Developers List" Subject: Re: Duplicate Class Error when Re-using Javac Task Date: Fri, 25 Feb 2005 19:25:11 +0100 User-Agent: KMail/1.7 References: <200502251714.00227.robert@enough.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502251925.12410.robert@enough.de> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:ad665ec02ba57e32ad0f56b16f32e139 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Martin, sorry, I forgot to mention that - fork does not help neither. Thanks, Robert On Friday 25 February 2005 18:51, Martin Gainty wrote: > Robert > Did you enable the javac task fork="true" > Viel Gluck, > Martin- > ----- Original Message ----- > From: "Robert Virkus" > To: "Ant Developers List" > Sent: Friday, February 25, 2005 11:13 AM > Subject: Duplicate Class Error when Re-using Javac Task > > > Hi everyone, > > > > I'd like to re-use a Javac-task from within my own task but I always get > > "duplicate class: ClassName"-errors when I compile the second set of > > source > > code files. > > > > The background of this is that I have a preprocessor that creates > > different > > source code versions of the same project, which are then compiled by the > > org.apache.tools.ant.taskdefs.Javac task. I use and set different > > directories > > for the source code and for the compiled classes in each run. The first > > round > > is compiled without any problems, but the following round fails with the > > "duplicate class" error. > > > > When I create a new instance of the Javac task, it works without > > problems. > > > > I want to reuse the Javac task since I want to allow a nested > > -definition in my task (in the build.xml). (The project is J2ME > > Polish > > by the way, www.j2mepolish.org). > > > > Is anyone aware what could be done in this case? I have seen that the > > Javac > > task resets its internal file list for each execute() call, but this > > doesn't > > seem to help. I could send a demonstrator project along with the source > > code > > to anyone interested. > > > > Thanks in advance, > > Robert > > -- > > Robert Virkus > > Enough Software > > Vor dem Steintor 218 > > 28203 Bremen > > Germany > > > > www.enough.de > > +49-(0)421-9889131 > > +49-(0)160-7788203 > > robert@enough.de > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > > For additional commands, e-mail: dev-help@ant.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org -- Robert Virkus Enough Software Vor dem Steintor 218 28203 Bremen Germany www.enough.de +49-(0)421-9889131 +49-(0)160-7788203 robert@enough.de --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org