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 - build-impl.xml should include a 'class-depend' target
Summary: build-impl.xml should include a 'class-depend' target
Status: CLOSED DUPLICATE of bug 36033
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-19 14:46 UTC by rsivan
Modified: 2006-03-24 09:49 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.