Carlos Santana created CB-6090:
----------------------------------

             Summary: CLI should not error on build command for firefoxos
                 Key: CB-6090
                 URL: https://issues.apache.org/jira/browse/CB-6090
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI, FirefoxOS
    Affects Versions: 3.4.0
         Environment: osx
$ cordova -v
3.4.0-0.1.0

            Reporter: Carlos Santana


cordova should not error when running 'cordova build firefoxos"
firefox platform already handle with a nice message that the command is not 
applicable for other commands like "emulate" and "run" 
same should be done for build

recreate:
(master)$ cordova create todd-firefoxos com.example.todd TODD
Creating a new cordova project with name "TODD" and id "com.example.todd" at 
location 
"/Users/csantana23/Documents/SWG/git/csantanapr/triangle-open-data-day/hybridApp/todd-firefoxos"
(master)$ cd todd-firefoxos/
(master)$ cordova platform add firefoxos
Creating firefoxos project...
Creating Firefox OS project
Project Path 
../../../../../../../git/csantanapr/triangle-open-data-day/hybridApp/todd-firefoxos/platforms/firefoxos
Package Name com.example.todd
Project Name TODD
Generating config.xml from defaults for platform "firefoxos"
Preparing firefoxos project

(master)$ cordova build
Generating config.xml from defaults for platform "firefoxos"
Preparing firefoxos project
Running command: 
/Users/csantana23/git/csantanapr/triangle-open-data-day/hybridApp/todd-firefoxos/platforms/firefoxos/cordova/build
 args=[]
execvp(): No such file or directory
Error: 
/Users/csantana23/git/csantanapr/triangle-open-data-day/hybridApp/todd-firefoxos/platforms/firefoxos/cordova/build:
 Command failed with exit code ENOENT
    at ChildProcess.whenDone 
(/Users/csantana23/.nvm/v0.10.24/lib/node_modules/cordova/src/superspawn.js:112:23)
    at ChildProcess.EventEmitter.emit (events.js:95:17)
    at Process.ChildProcess._handle.onexit (child_process.js:787:12)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to