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 9276 - JAR Packager does not honor distinction between compile and build
Summary: JAR Packager does not honor distinction between compile and build
Status: CLOSED DUPLICATE of bug 19670
Alias: None
Product: obsolete
Classification: Unclassified
Component: jarpackager (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks: 8997 11321
  Show dependency tree
 
Reported: 2001-01-29 18:59 UTC by Jesse Glick
Modified: 2003-07-01 10:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-01-29 18:59:56 UTC
If you try to Compile a J.P. *.jar, in fact it does the same as Build. This is
noticeable e.g. due to Ales Novak's recent change to the compilation system
which means that hitting Compile on a single object in fact tries to Compile,
not Build, it. But doing so on a *.jar actually rebuilds contained files and the
JAR itself, which is not desirable. And Compile'ing a directory containing a JAR
will always rebuild it, so the Output Window will say that something happened,
when in fact everything might have been up-to-date.

Technically: JarUtils.createCompilerJob asks for CompilerCookie (instead of
.Compile or .Build as appropriate; the result could be either of these,
randomly). JarDataObject implements both cookies and does not distinguish
between them.

Ideally JarCompiler.isUpToDate would be actually implemented so that the Output
Window would give a more meaningful message. I.e. if all files constituting the
JAR were in fact up-to-date already, and the JAR itself in fact was newer than
all the files that would go into it, then nothing should be done and iUTD should
be true.
Comment 1 Jesse Glick 2001-01-29 19:00:59 UTC
[dev jan 27 BTW]
Comment 2 Jan Chalupa 2001-03-12 10:44:22 UTC
Version: 'Dev' -> 3.2
Comment 3 Mike Schilling 2001-03-27 18:11:34 UTC
The dependency management currently being discussed as part of the projects 
project will make all of this feasible.
Comment 4 Jan Chalupa 2001-05-05 23:08:37 UTC
Target milestone 3.3
Comment 5 Jan Chalupa 2001-11-27 12:47:21 UTC
Target milestone -> 3.3.1.
Comment 6 Milos Kleint 2002-05-10 14:35:54 UTC
I believe it's fixed on the jarpackager side by using the new Compile
api features.
(however it's probably still not working, see
http://www.netbeans.org/issues/show_bug.cgi?id=19670)
Comment 7 Jesse Glick 2002-11-27 16:36:13 UTC
Is not fixed, not in 3.4, not in dev.
Comment 8 Jesse Glick 2002-11-27 16:36:42 UTC
Issue #19670 seems to be the same thing.

*** This issue has been marked as a duplicate of 19670 ***
Comment 9 Quality Engineering 2003-07-01 09:57:54 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.
Comment 10 Quality Engineering 2003-07-01 10:00:58 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.
Comment 11 Quality Engineering 2003-07-01 10:02:03 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.