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

Angela Fowler commented on CB-4149:
-----------------------------------

The problem is that we were previously able to build the js in v2.7 using jake.
In v2.9 the grunt task fails because it tries looking for git in the wrong 
place even though it has already run git
  Fatal error: Error: Command failed: The system cannot find the path specified.
After adding some log statements the error turns out to be
  Error: Command failed: fatal: Not a git repository (or any of the parent 
directories): .git

The cordova-js project has been extracted from the zip. Should it have been 
installed as a git repository created by the command line tools? This is why 
the npm debug log is attached.

The README does not mention git and the tasks have not been updated from jake 
to grunt.


   
                
> Grunt cordovajs task cannot find the path specified
> ---------------------------------------------------
>
>                 Key: CB-4149
>                 URL: https://issues.apache.org/jira/browse/CB-4149
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: Master, 2.9.0
>         Environment: Windows 7 Enterprise
>            Reporter: Angela Fowler
>            Assignee: Filip Maj
>         Attachments: npm-debug.log
>
>
> 1. Trying to run the default tasks causes an error :
> c:\development\cordova-2.9.0\cordova-js>grunt
> Running "cordovajs:android" (cordovajs) task
> Fatal error: Error: Command failed: The system cannot find the path specified.
> 2. The README file refers to the old Jake tasks e.g. build
> "Then from the repository root run:
>     grunt
> This will run the `build`, `hint` and `test` tasks by default."
> According to grunt --help 
> Available tasks
>           cordovajs  Packages cordova.js *
>                test  Runs test in node
>               btest  Runs tests in the browser
>  complainwhitespace  Complain about what fixwhitespace would fix
>       fixwhitespace  Converts tabs to four spaces, eliminates trailing white
>                      space, converts newlines to proper form - enforcing style
>                      guide ftw!
>               clean  Clean files and folders. *
>              jshint  Validate files with JSHint. *
>             default  Alias for "cordovajs", "complainwhitespace", "test" 
> tasks.

--
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