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.
I am attempting to modify my ant script so that the mounted filesystems are available in the class path of the ant build process. I have included the netbeans.filesystems.path property in the build classpath as follows: <javac srcdir="Java/Source" destdir="Java/Classes"> <classpath> <pathelement path="${java.class.path}/"/> <pathelement path="${netbeans.filesystems.path}"/> </classpath> </javac> However, ant is not finding the jar I have mounted. I double-checked that property, and my jar is being listed. However, when I echo the property, I notice that there are quotes around the whole property value. I believe this may be confusing ant into treating the value as one path element. I may be wrong on the actual source of the problem, but in any case, I'd still like to be able to pass the mounted file systems to ant.
I assume you have one or more path components with spaces in their names? In that case it is probably a dubious feature of org.openide.execution.NbClassPath.getClassPath() which will probably need to be worked around in AntSettings.getProperties(). Please indicate which build you are using, and include the output of your echo.
Yes, there are spaces in the file names. I can't easily copy the echo output, but here's the general idea: "H:\Netbeans\system;C:\Program Files\netbeans\system;..." with quotes around the whole value. This is on 3.3 beta 1.
I can reproduce the extra quotes, though at least on Linux using Jikes or Javac it compiles anyway (probably a difference in quoting rules for the shell).
OK, I have a patch I will commit soon.
Fixed: AntSettings.java 1.14
I have tested this with Beta 4, and it appears to be working correctly. Marking as "verified."
Resolved for 3.3.x or earlier, no new info since then -> closing.