This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 51675

Summary: build-impl.xml should include a 'class-depend' target
Product: projects Reporter: rsivan <rsivan>
Component: AntAssignee: Jesse Glick <jglick>
Status: CLOSED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description rsivan 2004-11-19 14:46:55 UTC
It is very easy to add a depend target that 
invokes the Ant 'depend' task. Without it, if 
java class A depends on java class B, and B.java 
is modified, A.java does not get re-compiled 
by 'build main project'.
The following lines, added to build.xml, easily 
take care of this problem.
I suggest they should be part of build-impl.xml:
    <target name="-pre-compile" depends="class-
depend"/>

    <target name="class-depend" 
        description="Calculate class 
dependencies.">
        <depend srcdir="${src.dir}" 
destdir="${build.classes.dir}" cache="cachedir" 
dump="true"/>
    </target>
Comment 1 Milan Kubec 2004-11-19 14:51:01 UTC
Might be an option to include it or not in j2seproject.
Comment 2 Jesse Glick 2004-11-29 21:35:29 UTC
<depend> is one possibility, JavaMake is another. Not yet investigated
in detail.

*** This issue has been marked as a duplicate of 36033 ***
Comment 3 Marian Mirilovic 2005-12-20 16:04:17 UTC
This issue was solved long time ago. Because nobody has reopened it neither
added comments, we are verifying/closing it now. 
If you are still able to reproduce the problem, please reopen. 

Thanks in advance.