Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dinstone/jbp-launcher
java application launcher
https://github.com/dinstone/jbp-launcher
Last synced: about 1 month ago
JSON representation
java application launcher
- Host: GitHub
- URL: https://github.com/dinstone/jbp-launcher
- Owner: dinstone
- Created: 2013-09-05T06:49:39.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-27T06:38:50.000Z (over 7 years ago)
- Last Synced: 2023-05-18T07:48:07.902Z (over 1 year ago)
- Language: Java
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- 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`