Skip to content

bangroot/vertx-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vertx-reload adds the auto hotswap/reload capability to vertx as an agent. It builds on the awesome work done by the teams on HotswapAgent and DCEVM.

Installation/Usage

Gradle

So far, I've only been able to test and create and example for Gradle, but hopefully it's easy enough to extrapolate to others.

  1. Install DCEVM
  2. Modify your build.gradle (or included scripts) to do the necessary:

repositories { jcenter() }

configurations { agent }

dependencies { agent 'com.github.bangroot:vertx-reload:1.0.0:fat@jar' }

task copyAgent(type: Copy) { from configurations.agent into "$buildDir/agent" }

//if you are using the gradle executions from the vert.x gradle example, add the jvmArgs to execute using the agent task run(type: JavaExec, dependsOn: ['classes']) { classpath sourceSets.main.runtimeClasspath main = "io.vertx.core.Starter" jvmArgs = ["-javaagent:${new File("$buildDir/agent/vertx-reload-1.0.0-SNAPSHOT-fat.jar").absolutePath}", '-noverify', '-XXaltjvm=dcevm'] args "run", mainVerticle }

run.dependsOn copyAgent

3. Run with `./gradlew run`

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages