https://github.com/dinstone/jbp-launcher
java application launcher
https://github.com/dinstone/jbp-launcher
Last synced: 9 days ago
JSON representation
java application launcher
- Host: GitHub
- URL: https://github.com/dinstone/jbp-launcher
- Owner: dinstone
- Created: 2013-09-05T06:49:39.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T06:38:50.000Z (almost 9 years ago)
- Last Synced: 2025-01-11T18:47:09.280Z (over 1 year ago)
- Language: Java
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jbp-launcher
java application launcher provides a easy way to start and stop a java application.
## Quick Start
### build
`git clone https://github.com/dinstone/jbp-launcher.git`
`mvn install`
### unzip
`unzip jbp-launcher-2.3.0.zip`
`cd jbp-launcher-2.3.0`
### develop
now you can develop your application activator like this:
```java
public class FooActivator {
private static final Logger LOG = Logger.getLogger(FooActivator.class.getName());
public void start() {
showSystemEnvironment();
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public void stop() {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
```
### deploy
edit launcher.properties file, modify the application.activator:
`application.activator=demo.FooActivator`
release your application package to 'lib' dir.
### start & stop
execute the shell:
`sh start.sh`
`sh stop.sh`