Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created June 1, 2012 12:24
Show Gist options
  • Select an option

  • Save ccapndave/2851749 to your computer and use it in GitHub Desktop.

Select an option

Save ccapndave/2851749 to your computer and use it in GitHub Desktop.
compile.hxml
============
-js out/production/ptthaxe/js/PTT.js
-main Main
-debug
-cp src
-cp d:/Projects/HAXERESOURCES/cube/haxelib
-cp d:/Projects/HAXERESOURCES/hxevents/src
-cp d:/Projects/HAXERESOURCES/injector/haxelib
-cp d:/Projects/HAXERESOURCES/jQueryExtern
-cp d:/Projects/HAXERESOURCES/hx-node
-resource templates/locked.mtt@locked
When compiled with FlashDevelop (both when explicitly running haxe.exe compile.hxml and when using the built in builder) the source contains:
js.Boot.__trace = function(v,i) {
var msg = i != null?i.fileName + ":" + i.lineNumber + ": ":"";
msg += js.Boot.__unhtml(js.Boot.__string_rec(v,"")) + "<br/>";
var d = document.getElementById("haxe:trace");
if(d == null) alert("No haxe:trace element defined\n" + msg); else d.innerHTML += msg;
}
When compiled with IntelliJ (which AFAIK just runs haxe.exe compile.hxml) the source contains:
js.Boot.__trace = function(v,i) {
var msg = i != null?i.fileName + ":" + i.lineNumber + ": ":"";
msg += js.Boot.__string_rec(v,"");
var d = document.getElementById("haxe:trace");
if(d != null) d.innerHTML += js.Boot.__unhtml(msg) + "<br/>"; else if(typeof(console) != "undefined" && console.log != null) console.log(msg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment