This file contains 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 org.apache.solr.common.* | |
import org.apache.solr.client.solrj.* | |
import org.apache.solr.client.solrj.impl.* | |
import org.apache.solr.client.solrj.response.* | |
basename = "apache-solr-3.5.0" | |
baseurl = "http://ftp.jaist.ac.jp/pub/apache/lucene/solr/3.5.0" | |
serverurl = "http://localhost:8983/solr" | |
buildscript { |
This file contains 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
public class CopyStream implements Runnable { | |
private InputStream in; | |
private OutputStream out; | |
public CopyStream(InputStream in, OutputStream out) { | |
this.in = new BufferedInputStream(in); | |
this.out = new BufferedOutputStream(out); | |
} |
This file contains 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
package com.bluepapa32.gradle.plugins | |
import org.apache.tools.ant.filters.EscapeUnicode | |
import org.gradle.api.Plugin | |
import org.gradle.api.Project | |
import org.gradle.api.plugins.JavaBasePlugin | |
public class Native2AsciiPlugin implements Plugin<Project> { | |
def void apply(Project project) { | |
project.getPlugins().apply(JavaBasePlugin.class); |
This file contains 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
configurations { | |
demo | |
source | |
} | |
repositories { | |
mavenCentral() | |
} | |
dependencies { |
This file contains 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 org.apache.solr.common.* | |
import org.apache.solr.client.solrj.* | |
import org.apache.solr.client.solrj.impl.* | |
import org.apache.solr.client.solrj.response.* | |
basename = "apache-solr-3.5.0" | |
baseurl = "http://ftp.jaist.ac.jp/pub/apache/lucene/solr/3.5.0" | |
serverurl = "http://localhost:8983/solr" | |
buildscript { |
This file contains 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
def hoge(String... args) { | |
args*.substring(args*.toList().transpose().findIndexOf{ it.unique().size() != 1 }) | |
} | |
hoge("12345", "67890", "12abc") |
This file contains 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
def fizzbuzz(from, to, list) { | |
def i = 0 | |
def dict = list.split{ i++ % 2 == 0 }.transpose() | |
(from..to).each { | |
n -> println "${n}: ${dict.inject(''){ s, v -> (n % v[0] == 0) ? s + v[1] : s }}" | |
} | |
} | |
fizzbuzz(1, 100, [3, "Fizz", 5, "Buzz", 7, "Hoge"]) |
This file contains 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
configurations{ | |
cobertura | |
} | |
dependencies { | |
cobertura "net.sourceforge.cobertura:cobertura:1.9.4.1" | |
} | |
tmpDir = new File(buildDir, "tmp") |
This file contains 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
configurations { | |
findbugs | |
} | |
dependencies { | |
findbugs "com.google.code.findbugs:findbugs-ant:1.3.9" | |
} | |
findbugsOutputDirName = "findbugs" | |
findbugsReportDir = new File(reportsDir, findbugsOutputDirName) |
This file contains 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
configurations { | |
emma | |
} | |
dependencies { | |
emma "emma:emma:2.1.5320" | |
emma "emma:emma_ant:2.1.5320" | |
} | |
tmpDir = new File(buildDir, "tmp") |
NewerOlder