The javac task by default, adds the destination directory to the
classpath that is being used to compile 

( this is done in
org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.getCompil
eClasspath )

 

This behaviour is different from Sun's javac spec, and seems to be
undocumented in the ant task docs for the <javac> task.

Would anyone favour the idea of a patch for the <javac> that would add
an optional boolean attribute called "includeDestDir" ( defaults to true
)  which if set to false would prevent the destDir attribute from being
automatically added to the classpath.

 

This option would be very useful in projects where explicit dependencies
between packages are manually specified, and would prevent the need for
workarounds to this problem - such as convoluted tricks like compiling
every package in a separate temp folder, or compileWithWalls or
VerifyDesign from Ant-Contrib.

 

 

 

 

 

 

Steph Richardson                                  [EMAIL PROTECTED]

Litle & Co.                                             www.litle.com
<http://www.litle.com/> 

 

Reply via email to