This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.transform.* | |
@ToString (includeNames = true) | |
class BuildGradle { | |
final StringWriter w = new StringWriter() | |
def plugins = [] | |
void apply () { | |
plugins.each { | |
w << "apply plugin : '${it}'\n" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import groovy.transform.* | |
class HtmlBuilder { | |
def html(@DelegatesTo(Html) Closure c) { | |
c.delegate = new Html() | |
println "<html>"; c(); println "</html>" | |
} | |
} | |
class Html { | |
def head(@DelegatesTo(Head) Closure c) { | |
c.delegate = new Head() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
START_SCRIPT={{ start_script }} | |
PID_FILE={{ pid_file }} | |
# *********************************************** | |
# *********************************************** | |
ARGS="" # optional start script arguments | |
DAEMON=$START_SCRIPT |
OlderNewer