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.
If a Java project is stored in a folder which has a single quote (') as part of the folder's name (or any parent folder) and you try to "export" it with "Build & Clean", the path is not escaped and the build script throws an exception: deps-jar: Created dir: C:\Users\user\Desktop\Cam's Gitted\JavaApplication2\build Updating property file: C:\Users\user\Desktop\Cam's Gitted\JavaApplication2\build\built-jar.properties Created dir: C:\Users\user\Desktop\Cam's Gitted\JavaApplication2\build\classes Created dir: C:\Users\user\Desktop\Cam's Gitted\JavaApplication2\build\empty Created dir: C:\Users\user\Desktop\Cam's Gitted\JavaApplication2\build\generated-sources\ap-source-output C:\Users\user\Desktop\Cam's Gitted\JavaApplication2\nbproject\build-impl.xml:926: The following error occurred while executing this line: C:\Users\user\Desktop\Cam's Gitted\JavaApplication2\nbproject\build-impl.xml:268: unbalanced quotes in -Xbootclasspath/p:'C:\Users\user\Desktop\Cam's Gitted\JavaApplication2\${endorsed.classpath}' BUILD FAILED (total time: 0 seconds) Steps to reproduce: 1. Create a folder named "foo'bar" somewhere 2. In Netbeans, create a new Java project, stored in that "foo'bar" folder 3. Click "Clean & Build" I suspect this will happen with any type of Java project, but I've only tried with an application. Also of note, this is on Windows, but any filesystem that supports quote characters in file names should have this problem.
The problem is that the single quote is a unescaped parameter delimiter. The project path cannot contain such a name, only project display name can. The New Project Wizard should remove the quote chars ' " from project folder name.
I disagree. What if the user only has write permissions to a folder with such a name? This would also still happen if the project was created outside a folder with a "'", manually moved into one, opened in NB, and then built.
In this case it's a WONTFIX as Ant does not support it.
Fixed jet-main 3bd36e08aac5. Partially fixed the basic project works fine due to Ant restrictions more complicated projects which are using -Xbootclasspath will not work. as the -Xbootclasspath: requires ' quoting. For web project the issue #232507 created.
Integrated into 'main-silver', will be available in build *201307112300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3bd36e08aac5 User: Tomas Zezula <tzezula@netbeans.org> Log: #232470:Java projects in folders with quotes in name breaks Clean & Build