Skip to content

Commit

Permalink
Start on application plugin integration
Browse files Browse the repository at this point in the history
Running from the bundled version still doesn't work, due to conf file classloading problems.
  • Loading branch information
Tim Berglund committed Jun 25, 2014
1 parent 36eabd7 commit c4a8603
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
apply plugin: 'java'

apply plugin: 'application'

def dseHome = System.getenv().DSE_HOME

mainClassName = 'Csv2SSTable'


repositories {
mavenCentral()
}

dependencies {
compile fileTree("${dseHome}/resources")
compile fileTree("${dseHome}/lib")
runtime files("${dseHome}/resources/cassandra/conf/")
runtime files("${dseHome}/resources/dse/conf/")
}

task convert(type: JavaExec) {
main = 'Csv2SSTable'
args = [file('data.txt'), file('outputs/')]
classpath = runtimeClasspath +
files("${dseHome}/resources/cassandra/conf/") +
files("${dseHome}/resources/dse/conf/")
classpath = runtimeClasspath
}

task wrapper(type: Wrapper) {
Expand Down

0 comments on commit c4a8603

Please sign in to comment.