org.akhikhl.gretty.JavaExecParams.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gretty-core Show documentation
Show all versions of gretty-core Show documentation
Advanced gradle plugin for running web-apps on jetty and tomcat
/*
* Gretty
*
* Copyright (C) 2013-2015 Andrey Hihlovskiy and contributors.
*
* See the file "LICENSE" for copying and usage permission.
* See the file "CONTRIBUTORS" for complete list of contributors.
*/
package org.akhikhl.gretty
import groovy.transform.ToString
/**
*
* @author akhikhl
*/
@ToString
class JavaExecParams {
String main
List jvmArgs = []
List args = []
boolean debug = false
int debugPort = 5005
boolean debugSuspend = true
Map systemProperties = [:]
void arg(String a) {
args.add(a)
}
void args(String... a) {
args.addAll(a)
}
void jvmArg(String a) {
jvmArgs.add(a)
}
void jvmArgs(String... a) {
jvmArgs.addAll(a)
}
void systemProperties(Map m) {
if(systemProperties == null)
systemProperties = [:]
systemProperties << m
}
void systemProperty(String name, String value) {
if(systemProperties == null)
systemProperties = [:]
systemProperties[name] = value
}
}