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

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

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

    https://github.com/apache/cordova-lib/pull/148#discussion_r23408256
  
    --- Diff: cordova-lib/src/cordova/util.js ---
    @@ -55,6 +61,8 @@ exports.preProcessOptions = preProcessOptions;
     exports.addModuleProperty = addModuleProperty;
     exports.getOrigWorkingDirectory = getOrigWorkingDirectory;
     exports.fixRelativePath = fixRelativePath;
    +exports.getPlatformDetailsFromDir = getPlatformDetailsFromDir;
    --- End diff --
    
    "util" is generally a place where code factoring is low because people dump 
into it. I think this case applies - you should create a new module for the git 
cloning. Don't care where you put it though. Maybe call it "gitclone.js"


> Add support for git urls to 'cordova platform add'
> --------------------------------------------------
>
>                 Key: CB-8239
>                 URL: https://issues.apache.org/jira/browse/CB-8239
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: CLI, CordovaLib
>            Reporter: Omar Mefire
>
> Allow the following scenarios:
> - users can issue 'cordova platform add 
> https://github.com/apache/cordova-android.git' and the git repo will be 
> cloned and used.
> - users can issue 'cordova platform add 
> android@https://github.com/apache/cordova-android.git' and the git repo will 
> be cloned and used.
> - users can issue 'cordova platform add android' and if their config.xml file 
> contains: '<engine id='android' 
> version='https://github.com/apache/cordova-android.git' />, then the git repo 
> pointed to by config.xml will be cloned and used.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to