k***r 发帖数: 4260 | 1 各位知道哪里有小工具能generate a script for Java app? Basically it
should be able to autostart, start, restart, stop a Java app
as a Unix service. I know Java Service Wrapper does all this
and more but it's more than what I need. I think I'm looking for
a simple sample script or a simpler tool... |
b******y 发帖数: 9224 | 2 use ant, you can do a ant build file and as a script. to run it, you would
do sth like:
ant -buildfile config.xml |
k***r 发帖数: 4260 | 3 But does it support start/stop/restart?
【在 b******y 的大作中提到】 : use ant, you can do a ant build file and as a script. to run it, you would : do sth like: : ant -buildfile config.xml
|
z***h 发帖数: 405 | 4 自己写个shell script不就行了?和Java本身没有关系
【在 k***r 的大作中提到】 : But does it support start/stop/restart?
|
k***r 发帖数: 4260 | 5 嗯。不在行。
不过java service wrapper是可以和java app 集成的。
【在 z***h 的大作中提到】 : 自己写个shell script不就行了?和Java本身没有关系
|
w*******s 发帖数: 980 | 6 在Unix下,用Shell Script.不要浪费时间学Java Service Wrapper.
Shell script本身就是很实用的。用Unix却不会基本的shell script就有点说不过去了
。 |
k***r 发帖数: 4260 | 7 嗯。只是偶尔需要个小script,一直没机会集中写一些,所以屡学屡忘。。。
大script都用Python了
【在 w*******s 的大作中提到】 : 在Unix下,用Shell Script.不要浪费时间学Java Service Wrapper. : Shell script本身就是很实用的。用Unix却不会基本的shell script就有点说不过去了 : 。
|
k***r 发帖数: 4260 | 8 This looks interesting. It could be what I am looking for.
http://www.source-code.biz/snippets/java/7.htm |