blob: 68c728e306f6c93cf0a1c7bef6acff9734eb65c5 [file] [log] [blame]
/*
* Copyright 2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
description = 'The S4 core platform.'
apply plugin: 'java'
task "create-dirs" << {
sourceSets.all*.java.srcDirs*.each { it.mkdirs() }
sourceSets.all*.resources.srcDirs*.each { it.mkdirs() }
}
dependencies {
compile project(":s4-base")
compile project(":s4-comm")
compile project(":s4-core")
compile libraries.jcommander
compile libraries.zkclient
compile libraries.commons_io
}
apply plugin:'application'
mainClassName = "org.apache.s4.tools.Tools"
run {
// run doesn't yet directly accept command line parameters...
if ( project.hasProperty('args') ) {
args project.args.split('\\s+')
print args
}
}
test {
forkEvery=1
}