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 51080 - Docs on how to add javac.excludes
Summary: Docs on how to add javac.excludes
Status: RESOLVED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: Projects (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: John Jullion-ceccarelli
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-02 15:12 UTC by mclaassen
Modified: 2010-02-09 03:10 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mclaassen 2004-11-02 15:12:30 UTC
There is no javac.excludes property.  I have code 
in my repository that is not build ready.  There 
is a facility in ANT to do exclude stuff from the 
javac.  I went in and edited the build-impl file 
(the "Do not edit this file" file) and the 
excludes directive seemed to work perfectly...I 
just had to edit the forbidden file.

It *seems* as though this would be a relatively 
easy thing to add to the build process.  It would 
be even nicer if there was a place in the UI to 
change this value, but I can understand that it 
might be too late in the game for that.

I am marking this as a DEFECT since I will either 
need to restructure my CVS repository to have it 
work with netbeans, or edit the build-impl file.
Comment 1 David Konecny 2004-11-10 15:55:24 UTC
Thanks. Something very similar is already tracked and planned for 4.1
as issue 49026.

Re. customization of build-impl.xml - do not modify this file! Instead
customize your build.xml. You can override there (feature of Ant 1.6)
any target from build-impl.xml. That's how it is designed.

*** This issue has been marked as a duplicate of 49026 ***
Comment 2 mclaassen 2004-11-10 16:13:07 UTC
This may be related to 49026, but must it wait just because it is 
related?  If the decision is made again that it must wait, then so-be-
it, but I was hoping it would not be a major issue.

The upgrade path from previous 3.5.1 is rocky already.  Then, when I 
thought I finally had everything configured, my test compile fails.  
Maybe no one else will have this issue, but if it is not too 
difficult, it sure would have helped me feel more positive about the 
whole expierence.
Comment 3 David Konecny 2004-11-10 16:48:30 UTC
Unfortunately it is too late. The 4.0 is in High Resistence mode and
only high priority bugs are integrated.

I think the issue 49026 is superset of this one - the files must not
only be excluded from compilation but also from IDE parser, etc.

On the other hand I agree that something like this should be part of a
"cookbook" or some similar doc - how to customize javac to exclude
some files. Passing to our docs team and changing to TASK.
Comment 4 Irina Filippova 2010-02-09 03:10:28 UTC
Closing this issue.
The following docs describe how to Include/Exclude certain files from compilation:
1) http://wiki.netbeans.org/FaqExcludes
2) http://netbeans.org/kb/docs/java/project-setup.html
3) http://wiki.netbeans.org/Excludes49026

If more information is needed, please reopen this issue.

- Irina