All pastes #941052 Raw Edit

bd

public text v1 · immutable
·published 2008-03-13 14:06 UTC
rendered paste body

class Build {
	public static function main() {

		var HXSERVLET = "hxServlet";
		var CLIENTAPP = "dev/haxe/web/html/index.swf";
		var CLIENTSRC = "dev/haxe/client";
		var ACTIONCONTROLLER = "dev/web/controllers/ActionCtrl.n";
		var ACTIONSRC = "dev/haxe/server/command";

		Task.define("client",{
			targets:[CLIENTAPP],
			files:[Task.find(CLIENTSRC,"*.hx")],
			action: function() {
				Task.build(CLIENTSRC);
			},
		}) ;

		Task.define("hxServlet",{
			targets:[HXSERVLET+"/run.n"],
			files:[Task.find(HXSERVLET,"*.hx")],
			action: function() {
				Task.build(HXSERVLET);
			},
		}) ;

		Task.define("actionServer",{
			targets:[ACTIONCONTROLLER],
			files:[Task.find(ACTIONSRC,"*.hx")],
			action: function() {
				Task.build(ACTIONSRC);
			}
		});

		Task.define("eventServer",{  noop:"noop" });
		Task.define("fileServer",{  noop:"noop" });

		Task.define("cars", {
			tasks:["client","hxServlet","actionServer","eventServer","fileServer"],
			action: function() {
				trace("finished");
			}
		});

		Task.start("cars");

	}