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

Connor Pearson commented on CB-8457:
------------------------------------

I think you should be able to parse context.cmdLine to get the platform version.

> Version specifier causes platform add hook to not run
> -----------------------------------------------------
>
>                 Key: CB-8457
>                 URL: https://issues.apache.org/jira/browse/CB-8457
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>         Environment: OSX 10.10
>            Reporter: Connor Pearson
>
> Using cordova 4.2.0, I have a hook in config.xml defined like this:
> <platform name="ios">
>     <hook type="after_platform_add" src="build/script.rb" />
> </platform>
> Running 'cordova platform add ios' causes this script to be run, but 'cordova 
> platform add [email protected]' does not. If this is intended behavior, how can I set 
> up the hook to run on any platform add of ios?



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