Autoupdate module allows to execute a post install
code. The code is specified in
main/main.properties file in the nbm. The command
- java process - created by autoupdate module
- classpath - additioanl classpath may be
specified by nbm
- nbm parameters - specified by the nbm
- main class - specified by the nbm
There are keywords that can be replaced by the
module, for example %IDE_USER%. It is a question
whether it is nbm author's responsibility to quote
keywords, I think that it is.
However, the problem is with classpath - first
item of classpath is created by au module and _NOT
QUOTED_. So, if
userdir contains a space, the execution fails.
Tested on S1S 4.1, probably affects all versions
of NB and S1S.
Created attachment 8474 [details]
Attached path quotes only java process and first item in the
classpath. User parameters (those specified in main.properties) must
be quoted by nbm author. If this model is OK, it should be correctly
documented in the autoupdate module documentation.
Thanks, Martin. Fixed in trunk.
Fix quotes only java process and whole classpath.
Documentation - I added your note to #26730.
This is also fixed and released in a patch for S1S4u1.