I use JBoss AS 5.0 with eclipse 3.6. I start Jboss inside eclipse, the problems is, eclipse start jboss by direclty calling run.jar, and I need to do some assembling job(file copying etc.) each time when I start the server, there's not where I can put this operation when I click the start button, are there any ways to run some pre-proccessing tasks before calling the main method of run.jar?
AFAIK, currently there is no way to attach a script to execute before running JBoss (assuming you use JBoss AS Tools ).
However, you can indirectly achieve it using below steps:
auto-assemble.bat
) New...
button on the right pane auto-assemble.bat
file > Apply > OK and close the dialog From now on whenever you want to assemble the EAR simply do the following:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.