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 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 > <dominic.grae...@gmail.com (mailto:dominic.grae...@gmail.com)>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 > > > > >