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 17148 - Please remove quotes from around path properties
Summary: Please remove quotes from around path properties
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 14731
Blocks:
  Show dependency tree
 
Reported: 2001-10-31 00:27 UTC by Jeffrey Keyser
Modified: 2003-06-30 14:47 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 Jeffrey Keyser 2001-10-31 00:27:24 UTC
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.
Comment 1 Jesse Glick 2001-10-31 12:10:39 UTC
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.
Comment 2 Jeffrey Keyser 2001-10-31 15:25:27 UTC
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.
Comment 3 Jesse Glick 2001-11-06 13:17:23 UTC
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).
Comment 4 Jesse Glick 2001-11-06 14:16:53 UTC
OK, I have a patch I will commit soon.
Comment 5 Jesse Glick 2001-11-07 09:37:41 UTC
Fixed: AntSettings.java 1.14
Comment 6 Jeffrey Keyser 2001-11-16 00:59:25 UTC
I have tested this with Beta 4, and it appears to be working 
correctly.  Marking as "verified."
Comment 7 Quality Engineering 2003-06-30 14:47:49 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.