Skip to content

Instantly share code, notes, and snippets.

@daschl
daschl / main.rs
Created December 21, 2015 13:45 — forked from normanmaurer/main.rs
extern crate hyper;
use hyper::server::{Server, Request, Response};
use hyper::status::StatusCode;
use hyper::header::{Host, UserAgent};
use hyper::uri::RequestUri;
use hyper::client::Client;
use std::io;
use std::fs::File;
queryTemplate = ViewQuery.from("design", "view");
processViewOptions(queryTemplate, vopts.getInner());
long iterRemaining = getPrivopts().iterCount;
while (isCancelled == false) {
boolean gotException = false;
long beginTime = System.currentTimeMillis();
String curView;
apply plugin: 'checkstyle'
checkstyleMain {
ignoreFailures = false
reports {
include ( '**/*.java')
xml {
destination "${rootProject.buildDir}/reports/checkstyle/main.xml"
}
}
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile group: 'net.spy', name:'spymemcached', version: '2.10.3'
}