I hereby claim:
- I am ataylor284 on github.
- I am ataylor284 (https://keybase.io/ataylor284) on keybase.
- I have a public key whose fingerprint is 981F 1299 904E BC0C EA45 CE4B BC0C 1BE0 5C34 6162
To claim this, I am signing this object:
apply plugin: 'pmd' | |
pmd { | |
consoleOutput = true | |
ruleSets = ['java-basic', 'java-braces', 'java-imports', 'java-design', 'java-typeresolution', 'java-unnecessary'] | |
} |
task showJars << { | |
configurations.compile.each { println it } | |
} |
import javax.servlet.ServletOutputStream | |
import javax.servlet.http.* | |
trait ServletTestCase { | |
def parameters = [:] | |
def requestAttributes = [:] | |
def sessionAttributes = [:] | |
def responseContentType | |
def responseHeaders = [:] |
I hereby claim:
To claim this, I am signing this object:
apply plugin: 'java' | |
apply plugin: 'application' | |
mainClassName = "package.MainClass" | |
dependencies { | |
compile fileTree(dir: 'libs', include: '*.jar') | |
} |
def makeContent(file) { | |
if (file.directory) { | |
[ file: file.name, type: 'dir', contents: file.listFiles().collect { makeContent(it) } ] | |
} else { | |
[ file: file.name, type: 'file' ] | |
} | |
} | |
def map = makeContent(new File( 'conf' )) |
import java.util.Iterator; | |
public class LookaheadIterator implements Iterator { | |
private Iterator iter; | |
private boolean hasLookahead; | |
private Object lookahead; | |
public LookaheadIterator(Iterator iter) { | |
this.iter = iter; |
import com.sun.net.httpserver.* | |
Object.metaClass.webapp = { | |
{ path -> | |
try { | |
def attrs = path.split('/')[1..-1] | |
[200, owner.delegate.invokeMethod(attrs.head(), attrs.tail() as Object[]) as String] | |
} catch (Exception e) { | |
[500, e as String] | |
} |