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

ASF GitHub Bot commented on CB-4914:
------------------------------------

GitHub user muratsu opened a pull request:

    https://github.com/apache/cordova-android/pull/147

    CB-4914 Fix build whitespace issue

    On Windows, when attempted to use the CLI to build an android project, if 
the path contains spaces then the command fails. This currently only happens in 
4.0.x branch and when Gradle is used. This PR solves the whitespace issue.


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-android CB-4914

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-android/pull/147.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #147
    
----
commit b4c5b3ab65e1870f2d552f6fb10abd991557ce61
Author: Murat Sutunc <mura...@microsoft.com>
Date:   2015-01-13T06:54:37Z

    CB-4914 Fix build whitespace issue

----


> 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
>            Assignee: Lorin Beer
>             Fix For: 3.2.0
>
>
> 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 was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to