Project
IntelliJ IDEA
Priority
Critical
Type
Bug
Fix versions
No Fix versions
State
Fixed
Assignee
Eugene Zhuravlev
Subsystem
No subsystem
Affected versions
No Affected versions
Fixed in build
108.65  
  • Created by   Yegor Yarko
    4 years ago (12 Feb 2007 23:04)
  • Updated by   root
    2 years ago (17 Jan 2010 20:41)
  • Jira: IDEADEV-15128
    (history, comments)
 
IDEA-37024 GeneralCommandLine does not properly handle arguments with \ at the end
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
Property values are passed to java via -D parameter and surrounding the full string with quotes, however trailing "\" will escape the quote and, thus brake the command line.

e.g. while trying to mimic IDEA build, I set up jdk.home.idea_jdk to something like c:\Program Files\Java\jdk1.5.0_08\ and got error: java.lang.NoClassDefFoundError: XP ...
for command line like:
java.exe ... "-Djdk.IDEA jdk.home=c:\Program Files\Java\jdk1.5.0_08\" "-Dos.name=Windows XP" ...

Seems, we should consider various escaping issues...

Issue was resolved
Comments (1)
 
History
 
Linked Issues (?)
 
Eugene Petrenko
  Eugene Petrenko
21 Nov 2007 13:27
4 years ago
Actually under windows \" - means escaped quote thus command line becomes broken