[英]How can I run a batch job when start Jboss in eclipse?
I use JBoss AS 5.0 with eclipse 3.6. 我在Eclipse 3.6中使用JBoss AS 5.0。 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?
我在eclipse中启动Jboss,问题是,eclipse通过直接调用run.jar来启动jboss,每次启动服务器时我都需要做一些组装工作(文件复制等),没有地方可以进行此操作当我单击开始按钮时,在调用run.jar的主要方法之前,是否有任何方法可以运行一些预处理任务?
AFAIK, currently there is no way to attach a script to execute before running JBoss (assuming you use JBoss AS Tools ). AFAIK,当前无法在运行JBoss之前附加脚本来执行(假设您使用JBoss AS Tools )。
However, you can indirectly achieve it using below steps: 但是,您可以使用以下步骤间接实现它:
auto-assemble.bat
) auto-assemble.bat
) New...
button on the right pane New...
按钮 auto-assemble.bat
file > Apply > OK and close the dialog auto-assemble.bat
文件>应用>确定,然后关闭对话框 From now on whenever you want to assemble the EAR simply do the following: 从现在开始,只要您要组装EAR,只需执行以下操作:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.