From issues-return-25133-apmail-cordova-issues-archive=cordova.apache.org@cordova.apache.org Thu May 1 16:07:16 2014 Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6088B102A2 for ; Thu, 1 May 2014 16:07:16 +0000 (UTC) Received: (qmail 79974 invoked by uid 500); 1 May 2014 16:07:15 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 79946 invoked by uid 500); 1 May 2014 16:07:15 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 79934 invoked by uid 99); 1 May 2014 16:07:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2014 16:07:15 +0000 Date: Thu, 1 May 2014 16:07:15 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-6481) adds plugin level hooks support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6481?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1398671= 0#comment-13986710 ]=20 ASF GitHub Bot commented on CB-6481: ------------------------------------ Github user agrieve commented on a diff in the pull request: https://github.com/apache/cordova-plugman/pull/74#discussion_r12193231 =20 --- Diff: src/util/hooks.js --- @@ -0,0 +1,124 @@ +/* + * Copyright (c) Microsoft Open Technologies, Inc. =20 + *=20 + * Licensed under the Apache License, Version 2.0 (the "License");=20 + * you may not use this file except in compliance with the License.=20 + * You may obtain a copy of the License at=20 + *=20 + * http://www.apache.org/licenses/LICENSE-2.0=20 + *=20 + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +var path =3D require('path'), + fs =3D require('fs'), + child_process =3D require('child_process'), + Q =3D require('q'), + events =3D require('../events'), + os =3D require('os'), + isWindows =3D (os.platform().substr(0,3) =3D=3D=3D 'win'); + +/** + * Implements functionality to run plugin level hooks.=20 + * Hooks are defined in plugin config file as