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

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

Github user Steckelfisch commented on a diff in the pull request:

    https://github.com/apache/cordova-firefoxos/pull/7#discussion_r12133238
  
    --- Diff: bin/templates/project/cordova/clean ---
    @@ -0,0 +1,38 @@
    +#!/usr/bin/env node
    +
    +/*
    +       Licensed to the Apache Software Foundation (ASF) under one
    +       or more contributor license agreements.  See the NOTICE file
    +       distributed with this work for additional information
    +       regarding copyright ownership.  The ASF licenses this file
    +       to you under the Apache License, Version 2.0 (the
    +       "License"); you may not use this file except in compliance
    +       with the License.  You may obtain a copy of the License at
    +
    +         http://www.apache.org/licenses/LICENSE-2.0
    +
    +       Unless required by applicable law or agreed to in writing,
    +       software distributed under the License is distributed on an
    +       "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    +       KIND, either express or implied.  See the License for the
    +       specific language governing permissions and limitations
    +       under the License.
    +*/
    +
    +
    +var path = require('path'),
    +    clean = require('./lib/clean'),
    +    reqs  = require('./lib/check_reqs'),
    +    args  = process.argv;
    +
    +// Support basic help commands
    +if(args.length > 2
    +   || args[2] == '--help' || args[2] == '/?' || args[2] == '-h' ||
    --- End diff --
    
    stole it from android


> FirefoxOS - add build script
> ----------------------------
>
>                 Key: CB-5816
>                 URL: https://issues.apache.org/jira/browse/CB-5816
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: FirefoxOS
>            Reporter: Axel Nennker
>
> run:  cordova build firefoxos
> output:
> Generating config.xml from defaults for platform "firefoxos"
> Preparing firefoxos project
> Compiling app on platform "firefoxos" via command 
> "/project/platforms/firefoxos/cordova/build" 
> events.js:72
>         throw er; // Unhandled 'error' event
>               ^
> Error: spawn ENOENT
>     at errnoException (child_process.js:980:11)
>     at Process.ChildProcess._handle.onexit (child_process.js:771:34)
> project$ 
> expected output: 
> nothing
> ---------
> platforms/firefoxos/cordova/build does not exist so the "cordova build 
> firefoxos" command fails.
> Please add a "build" script (although it does nothing)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to