ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richardson, Steph" <srichard...@litle.com>
Subject Suggested change for <javac> classpaths
Date Mon, 18 Apr 2005 15:52:58 GMT
 

 

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                                  srichardson@litle.com

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

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message