[ 
https://issues.apache.org/jira/browse/CB-4914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779528#comment-13779528
 ] 

Simon Fisher commented on CB-4914:
----------------------------------

Here is the output:

{noformat}
C:\Temp\my path\HelloWorld>cordova compile android --verbose
Compiling platform "android" with command ""C:\Temp\my 
path\HelloWorld\platforms\android\cordova\build"" (output to follow)...
'C:\Temp\my' is not recognized as an internal or external command,
operable program or batch file.

Error: An error occurred while building the android project. 'C:\Temp\my' is 
not recognized as an internal or external command,
operable program or batch file.

    at 
C:\Users\Simon\AppData\Roaming\npm\node_modules\cordova\src\compile.js:34:23
    at 
C:\Users\Simon\AppData\Roaming\npm\node_modules\cordova\node_modules\shelljs\shell.js:1707:7
    at ChildProcess.exithandler (child_process.js:641:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:735:16)
    at Socket.<anonymous> (child_process.js:948:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:466:12)
{noformat}

>From that error message, and looking briefly at cordova\src\compile.js, it 
>appears as though the problem occurs after shell.exec() invokes the 
>platforms\android\cordova\build script.
                
> Cordova CLI cannot build Android project when the path contains spaces
> ----------------------------------------------------------------------
>
>                 Key: CB-4914
>                 URL: https://issues.apache.org/jira/browse/CB-4914
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, CLI
>    Affects Versions: 3.0.0
>         Environment: Platform: Windows 7
> Cordova CLI Version: 3.0.9
>            Reporter: Simon Fisher
>
> When attempting to use the CLI to compile/build an android project, if the 
> path contains spaces then the command fails.
> Example:
> C:\my path>cordova create HelloWorld com.test.helloworld "HelloWorld"
> (success)
> C:\my path> cd helloworld
> C:\my path\helloworld>cordova platform add android
> (success)
> C:\my path\helloworld>cordova prepare android
> (success)
> C:\my path\helloworld>cordova compile android
> [Error: An error occurred while building the android project. 'C:\my' is not 
> recognized as an internal or external command, operable program or batch file.
> ]
> The same error occurs if I manually run "platforms/android/cordova/build.bat"
> However if I manually run "platforms/android/ant debug" then the build 
> appears to succeed (at least, it gives no errors and generates an .APK file)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to