Eclipse plugin run external program
Run the follow command from the command line at the root of the checked out project: mvn eclipse:configure-workspace -Declipse. The Maven executable path should be entered as the Location either as the full path or as a variable. To create the variable, select Variables Select the newly created variable name for the Location, and enter the path to the checked out OpenMRS project as the Working Directory. Refresh the workspace after running the commands by selecting the Refresh tab and 'Refresh resources upon completion'.
Apply the External Tools changes and Run. Output from the command with appear in the Console. After running, the Maven tools are available in the External Tools dropdown. Follow the same steps for adding other Maven commands.
For the build command, enter these the Arguments: clean install --batch-mode. It can't hurt right? Note: I used perl instead of wperl because I'm running the 1. If I use wperl instead, I actually get the quick DOS popup window even though wperl is modeless , Run in background is checked, and the 1. I suspect the opposite would happen if I were using the 1. After entering the data above, click Apply.
You should end up with something looking like Figure 4. Figure 4: Enter Main configuration values. Next, click on the Common tab in the configuration you just created and click the External Tools checkbox in the Display in favorites menu Figure 5 settings group and click Apply. Then hit OK to close the External Tools window. Figure 5: Add configuration to External Tools menu. First I would recommend using ProcessBuilder instead of Runtime.
Second to be able to interact with the different streams of the process started you need to do it concurrently, i. Here is a sample code wihch illustrates interaction with the command line prompt in windows cmd.
You could make it simple and redirect of the process stderr to stdout using ProcessBuilder redirectErrorStream true before starting the process and then have only 2 threads, one for input and one for output. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 7 years, 5 months ago. Active 7 years, 5 months ago. Viewed times.
Improve this question. What do you mean by pass a command?
0コメント