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.
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.
*** Issue 10043 has been marked as a duplicate of this issue. ***
ToJar.java:55 might help you Warning: "tojar" task is deprecated, replace with simple "jar"
This issue is *not* about opensource NetBeans. Use closesource way to announce the bug.
Closesource issue, closing as invalid.
This *is* a bug in open source NetBeans nbbuild module. See nbbuild/antsrc/org/netbeans/nbbuild/ToJar.java line 57.
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.
Added Jesse to Cc:
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.
toJar removed from closesource java/build.xml. It's not needed after all.