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 AC53F11F9C for ; Thu, 24 Apr 2014 14:59:28 +0000 (UTC) Received: (qmail 66559 invoked by uid 500); 24 Apr 2014 14:58:29 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 66023 invoked by uid 500); 24 Apr 2014 14:58:18 -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 65926 invoked by uid 99); 24 Apr 2014 14:58:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Apr 2014 14:58:16 +0000 Date: Thu, 24 Apr 2014 14:58:16 +0000 (UTC) From: "Michal Mocny (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-6508) Should run pre-prepare hooks even when no platforms installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-6508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13979806#comment-13979806 ] Michal Mocny commented on CB-6508: ---------------------------------- A few thoughts about prepare hooks. Which of the following are we doing?: - for_each pre-prepare hook, run it once with no inputs - for_each pre-prepare hook, run it once with the list of target platforms as input - for_each pre-prepare hook, run it many times, once for each platform target For option 1, installing platforms during pre-prepare is fine. For option 2, the hook has to be able to append that new platform to the list of targets, so we need ways to resolve paths etc. For option 3, it gets confusing. Installing platforms is kinda pre-pre-prepare init type action in this case. Do we need a new hook category? > Should run pre-prepare hooks even when no platforms installed > ------------------------------------------------------------- > > Key: CB-6508 > URL: https://issues.apache.org/jira/browse/CB-6508 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Reporter: Michal Mocny > Assignee: Mark Koudritsky > Priority: Minor > > My app has a before_prepare hook that installs necessary platforms, but it currently won't run since we early exit if there are no platforms installed. We assume there is no work to be done during prepare, but in this case that isn't true. -- This message was sent by Atlassian JIRA (v6.2#6252)