A simple cli program used to replace a program's .jar file with another.
Go to file
Kristian Knarvik fdc5eb1db8
All checks were successful
KnarCraft/Jar-Updater/pipeline/head This commit looks good
Updates readme to account for changes in behavior
2020-08-29 12:17:09 +02:00
src Changes behavior to only allow the downloaded file to be optionally executed, not any chosen file 2020-08-29 12:14:56 +02:00
.gitignore Initial commit 2020-08-21 08:29:05 +02:00
Jenkinsfile Adds Jenkinsfile 2020-08-22 14:58:56 +02:00
pom.xml Implements all functionality assumed necessary 2020-08-22 14:40:46 +02:00
README.md Updates readme to account for changes in behavior 2020-08-29 12:17:09 +02:00

Jar-Updater

A simple cli program used to replace a program's .jar file with another. This program is necessary because a .jar cannot replace itself because it's locked while it's running (on some operating systems).

Usage

The software must be given one argument which is the download URL for the new file. The second argument (optional) is whether to run the downloaded file if the download was successful. The third argument is the new file name of the downloaded file. This is used when the file name in the URL might change. The fourth argument is the amount of seconds to wait before starting the download. This gives the calling software time to exit, making its executable readable.

The software is limited to downloading .jar files from knarcraft.net, but can be extended by replacing the URL validator.