You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Filip Maj (JIRA)" <ji...@apache.org> on 2012/12/17 20:24:22 UTC
[jira] [Commented] (CB-2075) cordova build fails when project added
to subversion
[ https://issues.apache.org/jira/browse/CB-2075?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13534192#comment-13534192 ]
Filip Maj commented on CB-2075:
-------------------------------
Response
----
based on the assumption that before_build wont be looking for directories; for the time being i have changed part of the the fire function in hooker.js to:
{code}
contents.forEach(function(script) {
var fullPath = path.join(dir, script);
var stats = fs.statSync(fullPath);
if (stats.isDirectory()) { // if this is a directory then continue the loop
return;
}
var status = shell.exec(fullPath);
if (status.code != 0) throw 'Script "' + path.basename(script) + '"' + 'in the ' + hook + ' hook exited with non-zero status code. Aborting.';
});
{code}
> cordova build fails when project added to subversion
> ----------------------------------------------------
>
> Key: CB-2075
> URL: https://issues.apache.org/jira/browse/CB-2075
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.2.0
> Reporter: Filip Maj
> Assignee: Filip Maj
> Fix For: 2.3.0
>
>
> Ive set up an iOS and android project then used svn import to add to repository then a checkout to create my local repo. When i run
> {{$ cordova build ios}}
> or
> {{$ cordova build android}}
> i get the following error
> {code}
> /bin/sh: /Users/{mydevpath}/.cordova/hooks/before_build/.svn: is a directory
> {code}
> Script ".svn"in the before_build hook exited with non-zero status code. Aborting.
--
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