[haXe] haxe completion
Nicolas Cannasse
ncannasse at motion-twin.com
Fri Jul 6 11:53:19 CEST 2007
jpjimenez a écrit :
> Hi, I am a little new in this world of compilers and haxe, and I have a
> doubt, I will appreciate any help. I am working in an simple IDE for
> haxe, and one of the most important thing that I dont know is how to
> capture all the messages that haxe output in my application, I mean:
>
> For example, in my code in C++ I put
>
> int main(int argc, char* argv[]){
>
> /*calling the haxe compiler*/
>
> system("haxe compilation.hxml");
>
> return 1;
> }
>
> compilation.hxml is the file that contain the command line for haxe.
>
> The question is :
>
> How can I get in my program all the messages that haxe output ?
One easy way to do is to run the following command :
haxe compilation.hxml 2>errors.txt
Then read the "errors.txt" file content which contains what has been
printed on stderr.
Nicolas
More information about the Haxe
mailing list