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 10042 - ToJar does not work with absolut srcdir path.
Summary: ToJar does not work with absolut srcdir path.
Status: RESOLVED WONTFIX
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: nbbuild-issues@ide
URL:
Keywords:
: 10043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-03-07 13:56 UTC by _ lkramolis
Modified: 2002-07-19 15:23 UTC (History)
2 users (show)

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 _ lkramolis 2001-03-07 13:56:29 UTC
Problem is in ToJar.java:57, where is created file start (File start = new File
(base, srcdir);). This works only when srcdir is relative path.

I tried it only on linux, but this should not work on any OS.

Example: try to build close source java module with absolut path of nbroot and
f4jroot properties. There will be this error:
/cvs/cs/main/java/build.xml:66: /cvs/cs/main/java/cvs/os/main/java/src not found.
Comment 1 _ lkramolis 2001-03-07 14:10:59 UTC
*** Issue 10043 has been marked as a duplicate of this issue. ***
Comment 2 _ lkramolis 2001-03-07 14:11:07 UTC
*** Issue 10043 has been marked as a duplicate of this issue. ***
Comment 3 rbalada 2001-03-07 15:27:28 UTC
ToJar.java:55 might help you

Warning: "tojar" task is deprecated, replace with simple "jar"
Comment 4 rbalada 2001-03-07 15:55:32 UTC
This issue is *not* about opensource NetBeans. Use closesource way to announce 
the bug.
Comment 5 rbalada 2001-03-07 15:56:51 UTC
Closesource issue, closing as invalid.
Comment 6 _ lkramolis 2001-03-07 16:08:13 UTC
This *is* a bug in open source NetBeans nbbuild module. See
nbbuild/antsrc/org/netbeans/nbbuild/ToJar.java line 57.
Comment 7 rbalada 2001-03-08 09:00:22 UTC
Well, this problem should be considered by Svatopluk Dedic and Jesse Glick.

The question is whether to switch target "tojar" in close-source java module to 
use Ant's task <jar> (and use mf-layer.xml) or whether to fix deprecated 
ToJar.java.

Jesse Glick and Svatopluk Dedic should consider this.
Comment 8 rbalada 2001-03-08 09:00:48 UTC
Added Jesse to Cc:
Comment 9 Jesse Glick 2001-03-12 17:45:13 UTC
Even if you have no time to switch to XML layers, it is trivial to replace
<tojar> tasks by equivalent <jar> tasks, except in the case that you do not know
at build time what the built JARs will be, which does not happen in NetBeans
modules. So please stop using the deprecated task, and we will not waste time
fixing it.
Comment 10 Svata Dedic 2001-03-12 17:53:09 UTC
toJar removed from closesource java/build.xml. It's not needed after all.