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 241485 - Adding a file whose specification includes a spaces like "Program files" should be enclosed in double quotes
Summary: Adding a file whose specification includes a spaces like "Program files" shou...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords: SPACE_IN_PATH
Depends on:
Blocks:
 
Reported: 2014-02-06 12:05 UTC by pabristow
Modified: 2014-02-08 04:29 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 pabristow 2014-02-06 12:05:07 UTC
Adding a linker file whose specification *includes a space*, for example "Program files", should be enclosed in double quotes.

Adding any file in c:\program files to a configuration.xml 

         <linkerLibItems>
            <linkerLibFileItem>C:/Program Files/mingw-builds/x64-4.8.1-win32-seh-rev5/mingw64/lib/libopcodes.a</linkerLibFileItem>
          </linkerLibItems>



gcc     -o dist/Debug/MinGW-Windows/filename_with_spaces build/Debug/MinGW-Windows/main.o /C/Program Files/mingw-builds/x64-4.8.1-win32-seh-rev5/mingw64/lib/libopcodes.a
gcc.exe: error: c:/Program: No such file or directory
gcc.exe: error: Files/mingw-builds/x64-4.8.1-win32-seh-rev5/mingw64/lib/libopcodes.a: No such file or directory

Adding quotes around the file specification in the configuration.xml 'cures' this.

Paul

PS I was confused in trying to add this file, but this confused me further!
Comment 1 Alexander Simon 2014-02-07 09:47:11 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/a7a1bc7ed446
Comment 2 Quality Engineering 2014-02-08 04:29:15 UTC
Integrated into 'main-silver', will be available in build *201402080001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a7a1bc7ed446
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #241485 Adding a file whose specification includes a spaces like "Program files" should be enclosed in double quotes