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 200562 - Reload in target platform doesn't allow spaces in module jar paths on Windows
Summary: Reload in target platform doesn't allow spaces in module jar paths on Windows
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: SPACE_IN_PATH
Depends on:
Blocks:
 
Reported: 2011-08-01 09:28 UTC by gregersen
Modified: 2011-08-02 13:43 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 gregersen 2011-08-01 09:28:48 UTC
When trying to reload a module in Maven-based netbeans platform development the following exception occurs:

[nbm:run-platform]
Executing: cmd.exe /X /C ""D:\Maven Test\mavenproject2\application\target\mavenproject2\bin\mavenproject2.exe" --console suppress --userdir "D:\Maven Test\mavenproject2\application\target\userdir" -J-Dnetbeans.logger.console=true -J-ea --branding mavenproject2 --jdkhome "C:\Program Files (x86)\Java\jdk1.6.0_24" --reload D:\Maven Test\mavenproject2\mavenproject2-sample\target\mavenproject2-sample-1.0-SNAPSHOT.jar"
java.io.FileNotFoundException: D:\Maven (Den angivne fil blev ikke fundet)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:106)
	at org.netbeans.Util.makeTempJar(Util.java:87)
	at org.netbeans.StandardModule.ensurePhysicalJar(StandardModule.java:268)
	at org.netbeans.StandardModule.loadManifest(StandardModule.java:294)
	at org.netbeans.StandardModule.<init>(StandardModule.java:135)
	at org.netbeans.ModuleFactory.create(ModuleFactory.java:69)
	at org.netbeans.ModuleManager.create(ModuleManager.java:593)
	at org.netbeans.core.startup.ModuleSystem.deployTestModule(ModuleSystem.java:372)
	at org.netbeans.core.startup.TestModuleDeployer.deployTestModule(TestModuleDeployer.java:71)
	at org.netbeans.core.startup.CLITestModuleReload.cli(CLITestModuleReload.java:80)
	at org.netbeans.CLIHandler.notifyHandlers(CLIHandler.java:235)
	at org.netbeans.CLIHandler$Server$1ComputingAndNotifying.run(CLIHandler.java:1195)

Steps to reproduce:

1. create a folder containing a 'Space' character
2. create a Maven-based platform app using the create project wizard with a sample module
3. build the app
4. run
5. reload sample module

Adding '"' around the path in the '--reload' argument would solve this issue.

It can be a show-stopper for developing with Javeleon on Windows
Comment 1 Jesse Glick 2011-08-01 15:02:20 UTC
Reproducible and easily fixed on Linux using quotes in platformActionMappings.xml, but this seems to fail on Windows.

http://jira.codehaus.org/browse/MNBMODULE-146 is related; you cannot even get to reproduce this bug on Linux without the fix for that issue.

Not a P3 when there is a trivial workaround - use safer directory paths.

(BTW you need not add yourself on CC to issues you reported.)
Comment 2 Jesse Glick 2011-08-01 15:17:21 UTC
core-main #3be90368cd7c
Comment 3 Quality Engineering 2011-08-02 13:43:27 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/3be90368cd7c
User: Jesse Glick <jglick@netbeans.org>
Log: #200562: Reload in target platform doesn't allow spaces in module jar paths on Windows