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

Andrew Grieve commented on CB-4382:
-----------------------------------

We should also ensure that hooks are always called with the CWD being the root 
of the project. Right now this isn't always the case.

I think arguments should be passed via environment variables. This works really 
well for Xcode build step scripts.

e.g.:

# Applicable only when the command is specific to a platform. e.g. "cordova run 
android"
CORDOVA_PLATFORM="android"

# This is the command that was typed, not the hook that is running (e.g. 
prepare is run after plugin add)
CORDOVA_COMMAND="plugin add foo_plugin"

# Version of the CLI tools
CORDOVA_VERSION="3.0"
                
> Pass cli arguments to project-level hooks
> -----------------------------------------
>
>                 Key: CB-4382
>                 URL: https://issues.apache.org/jira/browse/CB-4382
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI
>    Affects Versions: 3.0.0
>            Reporter: Carson Full
>            Assignee: Filip Maj
>            Priority: Minor
>
> Such as a specified platform.

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