Help on Run Configuration - Shell Script
已回答
Hi,
I want to develop a JavaDoc plugin and I'd like to be able to run javadoc with my plugin loaded, from IDEA. I am using the Run/Debug configurations dialog, and specifically the Shell Script option. I would also like IDEA to compile my code before running it. From the documentation (Run/Debug Configuration: Shell Script | IntelliJ IDEA Documentation) there should be a Build Project option in the Before Launch area, but I can't see it. There are 6 options available but not Build Project. Where should I look for this?
Thanks
My setup:
IntelliJ IDEA 2025.1 (Community Edition)
Build #IC-251.23774.435, built on April 14, 2025
Source revision: 9b2a2c261c093
Runtime version: 21.0.6+9-b895.109 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
请先登录再写评论。
Hi Peter,
Thanks for the report, I reproduced the issue and submitted it as IJPL-185073
If you have a Java project, you can use the 'Java Application' dedicated run configuration, and just put the ‘Build’ task first, and the Shell Script configuration second:
Hi Arina,
That works, I hadn't thought of doing it that way, thanks. I needed to add an empty main method to the project (it's a plugin so didn't have its own main) but that's not a big deal.
Peter