How to easily run specific build configuration?
In my team's project, we have about a zillion "standard" build configurations (i.e. ones that everyone uses), plus specific Maven and Gulp tasks to do certain things. In my day-to-day work, I generally need to use a couple of those build configurations, as well as a few sequences of Maven and/or Gulp tasks and launching specific URL's to run my various apps.
For the sequences of Maven/Gulp tasks, I've cheated and created my own build configs using the Batch type of configuration, where the batch file just prints "All done", and the Before launch activities run the Maven or Gulp tasks I need to do, in the order I need them.
The same is true for launching my URL's - I just created a JavaScript Debug config for each one I need, without the debugger (or with it).
This has helped me out immensely. But these custom configs are still buried among the zillions of configs we have. What I'd like is an easy way to get to them and run them when I need to. Here's what I've tried so far, unsuccessfully:
- Assigning a keystroke to run a specific build config. Can't find a way to do it
- Creating a toolbar button that will run a specific build config. Can't find a way to do it
- Re-ordering the configurations so the ones I want are all at the top. Can't do it. I can reorder them within their sections (Batch, Gulp, etc), but not across sections.
- Using Alt+Shift+F9 and Alt+Shift+F10 to bring up the Debug and Run popups (respectively) from the keyboard.
This is an OK solution, because the last thing I ran/debugged is highlighted and has a 1, so I can hit Enter or 1 to re-do it, and it takes keyboard input, so I can type to find the thing I want. But it's not great, because it still shows me the zillion configs.
It would be ideal if it were organized like an MRU list - show me the N things I've run recently at the top, with numbers so I can quick-select them, and then show me everything else. But it doesn't do that.
Does anyone have any ideas? Is it possible to bind a keystroke or a toolbar button to a specific config? Can I somehow create my own custom menu or popup that shows me an MRU list of configs? Is there some other way to make this easier for me?
Please sign in to leave a comment.
See https://stackoverflow.com/a/3126375/104891.
With https://plugins.jetbrains.com/plugin/9448-run-configuration-as-action you should be also able to create the quick lists with your run configirations: https://www.jetbrains.com/help/idea/configuring-quick-lists.html.
Thanks, Serge. This is exactly what I am looking for! I'll try it out and report back.
Success! Thank you so much!