Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1148

CLI tools do not work with spaces in the path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • cordova-android
    • None

    Description

      See: https://groups.google.com/forum/?fromgroups#!topic/phonegap/ey-D0JMG-Jc

      I'm having some odd issues with the command line tools on the Mac.

      1) Using create with no options creates an example folder. When I try to run cordova/debug, I get

      ➜ cordova git:(master) ✗ ./debug
      bash: /Users/ray/Dropbox/Work: No such file or directory

      Note where the folder ends, "Work". The real folder is

      /Users/ray/Dropbox/Work Projects/foo

      It looks like the space is causing a problem. I can't seem to run any of the scripts here.

      2) I switched to using the ant file as is. On a new project, doing ant debug, I get:

      BUILD FAILED
      /Applications/android-sdk-macosx/tools/ant/build.xml:518: Application package '_PACKAGE_' must have a minimum of 2 segments.

      When I look at the AndroidManfest.xml file, I see this:

      <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
      package="_PACKAGE_" android:versionName="1.1" android:versionCode="5">

      Which seems to imply that the main create script didn't replace the tokens correctly. This is how I ran it:

      /Users/ray/Dropbox/Mobile/phonegap2/lib/android/bin/create ./example3 com.phonegap.example3 Example2

      That is correct, right?

      Attachments

        Issue Links

          Activity

            People

              anis Anis Kadri
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: