All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.darylteo.vertx.gradle.deployments.PlatformConfiguration.groovy Maven / Gradle / Ivy

package com.darylteo.vertx.gradle.deployments

class PlatformConfiguration {
  List args = []
  String version
  List classpath = []

  def args(Iterable values) {
    args.addAll(values)
  }

  def args(Object... values) {
    args.addAll(values)
  }

  def version(String version) {
    this.version = version
  }

  // auxiliary parameters
  def conf(String file) {
    this.args('-conf', file)
  }

  def instances(int instances) {
    this.args('-instances', "$instances")
  }

  def cluster(String hostname = null, Integer port = null) {
    this.args('-cluster')

    if (hostname != null) {
      this.args('-cluster-host', hostname)
    }
    if (port != null) {
      this.args('-cluster-port', "$port")
    }
  }

  def classpath(def paths) {
    classpath += paths
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy