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.
dev build 200112240100 I'm going to paste the original report off the newsgroup: ------begin--------- Gili wrote: > Hi, > > I downloaded openlimewire (off limewire.org) and > tried building the sources using the Ant script provided. The > problem I run into is that certain files won't compile, claiming > "com.sun.java.util.collections.*" is undefined when in fact this > package is mounted off FileSystems in the form of a JAR. > How come I can manually compile these files (going into > them one by one and hitting COMPILE) but Ant can't seem to > see mounted JARs? > > Gili > > > I see the same behavior. The netbeans help doesn't match what the ide actually does. I think you have to explicitly add something like this to the classpath of the javac element of the build script if you want the filesystems included: <classpath> <pathelement path="${netbeans.filesystems.path}"/> </classpath> ------end-------
Yes, you are right, ant doesn't use repository classpath by default, in other words if you need some jar files for compilation you should include them all in javac task. Otherwise your project rely on some arbitrary jar files on your system classpath. If you use ${netbeans.filesystems.path} please note that such script depends on IDE.
Ok, but this issue is still valid right? :)
I don't think so, it's the way how it works. I'd like Jesse to express his opinion.
AFAIK the module does what it is supposed to do here, so this would be a documentation issue. Yes <classpath> <pathelement path="${netbeans.filesystems.path}"/> </classpath> is correct, if you in fact want to use the Filesystems mounts as part of your Ant classpath (as Milan says this makes your script nonportable outside the NB project, but if that is what you want, this is how to do it). Does the online help not say to do that? I was under the impression it did, but perhaps not.
John, could you please look at this?
Too late to add a new Help file to deal with this topic, I'll document it for 3.4.
Better ant classpath documentation in trunk.