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 105197 - should be able to specify only files to include in jar file
Summary: should be able to specify only files to include in jar file
Status: RESOLVED DUPLICATE of bug 49026
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-30 23:45 UTC by billshannon
Modified: 2007-06-06 23:13 UTC (History)
1 user (show)

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 billshannon 2007-05-30 23:45:09 UTC
When specifying the rules for creating a jar file you can specify which files
to exclude.  There should be a way to specify which files to include, excluding
all others.  I often end up with junk or temporary files in my source directory
and I don't want them accidentally included in the jar file.
Comment 1 Marian Mirilovic 2007-06-05 08:39:41 UTC
This has already been implemented for Java Application project, you have to go
to Properties of you project and select Build | Packaging .. there is a
textfield "Exclude from JAR File" ... other way is to write your own target
"-pre-jar" and define excludes in this task ...
Comment 2 billshannon 2007-06-05 17:39:21 UTC
I'm not sure you understand what I'm asking for.

I found the Exclude item.  What I want is a way to specify the
files to Include, not the files to Exclude.
Comment 3 Jesse Glick 2007-06-06 21:12:56 UTC
You can specify which sources are to be treated as part of the project in the
Sources tab.

*** This issue has been marked as a duplicate of 49026 ***
Comment 4 billshannon 2007-06-06 21:35:48 UTC
Ok, that seems to work, but to be honest I never would've guessed that the
settings there had anything to do with what files are packaged in the jar
file.  It would be nice if the Packaging screen had Includes/Excludes just
like the Sources screen.
Comment 5 Jesse Glick 2007-06-06 22:16:03 UTC
Excluded sources are hidden from view, not compiled, and not packaged. Of course
you could do more elaborate packaging steps with a custom Ant target but we do
not plan to support that in the GUI.
Comment 6 billshannon 2007-06-06 23:00:18 UTC
Are excluded files also hidden from version control?
Comment 7 Jesse Glick 2007-06-06 23:13:34 UTC
I am not positive but I think VCS integration currently ignores
includes/excludes. Not clear what is correct for most users.