ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Duplicate Class Error when Re-using Javac Task
Date Fri, 25 Feb 2005 20:35:59 GMT
On Fri, 25 Feb 2005, Robert Virkus <> wrote:

> 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 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.

Sounds as if the defined classpath gets poluted with your source
directory.  Can you compare the result of Javac#getClasspath before
and after invoking execute?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message