Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D24057A6C for ; Thu, 17 Nov 2011 16:22:43 +0000 (UTC) Received: (qmail 67174 invoked by uid 500); 17 Nov 2011 16:22:43 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 67149 invoked by uid 500); 17 Nov 2011 16:22:43 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 67141 invoked by uid 99); 17 Nov 2011 16:22:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 16:22:43 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dominic.graefen@gmail.com designates 209.85.215.172 as permitted sender) Received: from [209.85.215.172] (HELO mail-ey0-f172.google.com) (209.85.215.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Nov 2011 16:22:36 +0000 Received: by eyg24 with SMTP id 24so3155092eyg.17 for ; Thu, 17 Nov 2011 08:22:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=b9feFI3e+AvxXtPc7dSe2ACWmpXDyEeV0bEvs23i2Js=; b=X7vAw5WvguwW2SeRSdkuVNBN6GX+1fIVMI5UP/NVEnmRGGdvYFy9avPsjYfN0lBnV6 fJhJ0HsrlMouANU6y8Gtg50qIsKSzxEvFyFqj3kwQPgeN4iHXUCb2nhUn2cCAKrtZN35 oRHJ/aJIgCE6Q5Q9QCAPtXZLHktcoRzbUyq+c= Received: by 10.213.3.219 with SMTP id 27mr668777ebo.43.1321546935562; Thu, 17 Nov 2011 08:22:15 -0800 (PST) Received: from MBP.local (i19071.upc-i.chello.nl. [62.195.19.71]) by mx.google.com with ESMTPS id 49sm91005309eec.1.2011.11.17.08.22.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Nov 2011 08:22:14 -0800 (PST) Date: Thu, 17 Nov 2011 17:22:13 +0100 From: Dominic Graefen To: users@buildr.apache.org Message-ID: In-Reply-To: References: <8C9390E732B447D684FBA402EEE8B5E1@gmail.com> Subject: Re: FileTasks as dependencies X-Mailer: sparrow 1.4.2 (build 959.4) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4ec534b5_5e963896_1b79" X-Virus-Checked: Checked by ClamAV on apache.org --4ec534b5_5e963896_1b79 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Ahh, just looked at how project() does it, and the task is invoked manually. def haxelib spec haxelib = HaxeLib.lookup(spec) haxelib.invoke haxelib end Does the trick then ;) Thanks -- Dominic Graefen Freelance: Interactive Developer / Creative Technologist devboy.org On Thursday, November 17, 2011 at 5:21 PM, Dominic Graefen wrote: > But I want to provide a nicer API, like: > compile.with haxelib("nodejs:0.6") > And I got this working: > compile.from haxelib("nodejs:0.6") > > -- > Dominic Graefen > Freelance: Interactive Developer / Creative Technologist > devboy.org (http://devboy.org) > > > On Thursday, November 17, 2011 at 5:15 PM, Alex Boisvert wrote: > > > Try, > > > > compile.enhance [ ... tasks ... ] > > > > to add task prerequisites/dependencies to it. > > > > alex > > > > On Thu, Nov 17, 2011 at 8:01 AM, Dominic Graefen > > wrote: > > > > > Hey guys, > > > > > > I need to implement a way to install dependencies that are not maven > > > artifacts, as the language (haXe) uses its own package-manager. > > > Now I found out that compile.with won't invoke FileTasks: > > > > > > compile.with file( _("test.txt") ) do |t| > > > File.open(t.name (http://t.name), 'w') {|f| f.write("test") } > > > end > > > > > > > > > But compile.from works fine: > > > > > > compile.from file( _("test.txt") ) do |t| > > > File.open(t.name (http://t.name), 'w') {|f| f.write("test") } > > > end > > > > > > > > > Now I am wondering on how to implement this? > > > ActAsArtifact & Artifact have too many maven hooks to be suitable for this > > > package manager. > > > > > > My current attempt can be found here: > > > https://github.com/devboy/buildr-hx/blob/636b9d148818745bd8b097cefb7e49e37ecf86fb/lib/buildr/hx/core/haxe_lib.rb > > > > > > > > > > > > > --4ec534b5_5e963896_1b79--