On Fri, 25 Feb 2005, Robert Virkus <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]