java.se
, leave only the bare required modules and have it clearly documented.
There is als a sample pom.xml in a Section with the heading "Usage for projects that are using update4j" which you can find here:
Btw reading this and see
<bootstrapMainModule>org.update4j.demo.bootstrap</bootstrapMainModule>
I don't think you need the module name if you have the class name. Remember, the module system disallows split packages.
@thezboe Yes! In fact you can use any protocol of your choice, even old-fashioned sockets if you wish.
By default update4j will try to download a file using standard http/s and will assume that the file is publicly available. To change this, you should implement your own UpdateHandler
and provide your own logic at openDownloadStream()
.
Once the connection was established, just return an InputStream
; do not read the file yourself in that method, leave it up for the framework.
Then install the provider into the framework by following this guide.
Runtime.getRuntime().exec()