}
+
* Used to compile a non builder file..
*/
- public bool checkPlainFileSpawn( JsRender.JsRender file, string contents )
+
+ public bool checkPlainFileSpawn( JsRender.JsRender file, string contents )
+
{
// race condition..
if (this.compiler != null) {
DataOutputStream dostream = new DataOutputStream (ostream);
dostream.put_string (contents);
+ var target = pr.firstBuildModule();
+ if (target.length < 1) {
+ return false;
+ }
this.file = null;
this.line_offset = 0;
args += "--project";
args += file.project.fn;
args += "--target";
+
args += pr.firstBuildModule();
args += "--add-file";
args += tmpfile.get_path();
return true;
}
-
+
public void spawnResult(int res, string output, string stderr)
{
print("Missing output file: %s\n",exe);
return;
}
- string[] args = "/usr/bin/gnome-terminal -e /usr/bin/gdb -ex=r --args".split(" ");
+ string[] args = "/usr/bin/gnome-terminal -x /usr/bin/gdb -ex=r --args".split(" ");
// runs gnome-terminal, with gdb .. running the application..
// should be home directory...
- var exec = new Spawn("/tmp", args);
+
+
+ var exec = new Spawn(GLib.Environment.get_home_dir() , args);
exec.detach = true;
exec.run();