JDK-4132487 : The compiler should emit a dependency graph when compiling.
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.1.5,1.2.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,solaris_2.6
  • CPU: generic,sparc
  • Submitted: 1998-04-24
  • Updated: 2000-01-27
  • Resolved: 2000-01-27
Related Reports
Duplicate :  
Description

Name: tb29552			Date: 04/24/98


I know you can use '-depend' (which doesn't work)
but javac should also produce a file with the
dependency information in it.

It will let people use Make or integrate javac
into other build tools without having to hack
javac.
(Review ID: 28890)
======================================================================

Comments
EVALUATION There is an undocumented option "-xdepend" that produces the desired information, that was added for Java Workshop. The format should be self-evident. That option will remain an unsupported feature. We are also planning to add formally supported dependency output sometime after 1.2. david.stoutamire@Eng 1998-04-24 We would like at some point in the future to revamp the command-line semantics of the compiler to include a robust make-like mechanism to replace the broken -depend (-Xdepend in 1.2) option in the compiler. Note that both -Xdepend and -xdepend have been dropped in JDK 1.3. See 4303048. This proposal is worth considering, however, for the benefit of integration with existing toolchains. It is also a resonable stopgap measure in the absence of a radical overhaul as proposed in 4303048. william.maddox@Eng 2000-01-24
24-01-2000