Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

"Detached" console_runner?

<< < (3/3)

MortenMacFly:
Dear all, while trying to implement what I proposed here I found out that C::B has it already implemented! It's simply not documented. What I did:

1.) Added a new tool (cb_console_runner) with the following settings:
  - Parameter: $(RELEASE_OUTPUT_FILE)
  - Working dir: $(RELEASE_OUTPUT_DIR)
  - Option: Launch tool visible (without output redirection)
2.) Switched to the console project(s) I have that I want to compare and simply run the tool.

Notice the macros "FOO_OUTPUT_FILE" and "BAR_OUTPUT_DIR" where "FOO" and "BAR" have to be replaced by the active project's target name to access this targets output file/dir. In my case all tools have the same targets: "Debug" and "Release". So I select "RELEASE" to access the current project's "Release" target.

Now I can do what I want: I compile the "ToolA" project, run the console_runner "detached" by calling the tool. An external console opens with "ToolA". Then I switch to the next project and do the same (compilation & run the tool). A second console opens with "ToolB".... and so on...

Zero code change and all works perfect - exactly as I had in mind. This rocks! 8)

With regards, Morten.

Edit: Too fast with words - I missed that if I try to lauch the second tool I now get a C::B error: "Another tool is currently executing. Please allow for it to finish before launching another tool..." :-(

MortenMacFly:
Dear all,
it's me again finally with a patch for your kind inspection. I've modified the tools menu and added an option that allows to run a(ny) tool detached. This would not only allow me to do what I want but also others to run a tool whose output and state isn't required to be monitored. This simplifies the possibility to run more that (only) one tool at a time. I am aware that this is already possible by using "&" or the Win "start" command. Anyway: I believe that this is an easier solution.
How do you think about that? I'm looking forward to a discussion.
With regards, Morten.
Ps.: My last post still applies - using the patch finally everything I want is possible.

[attachment deleted by admin]

Ceniza:
I just checked your patch and it sounds good. I'll compile it, test it and if everything goes well (it should) I'll commit it :)

Navigation

[0] Message Index

[*] Previous page

Go to full version