ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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 <robert@enough.de> 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 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.

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?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message