Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix build version and dependencies in subproject files,

- also fixed misnamed parameter in Main class
- fixed path leading to error message in ZkServer
  • Loading branch information...
commit 17de52dfa94da9c7ddf1a29c849107df6defc3d5 1 parent 96eddf8
@matthieumorel matthieumorel authored
View
2  LICENSE
@@ -458,6 +458,8 @@ any resulting litigation.
----------------------------------------------------------------------------
+This product uses slf4j, which uses the following license (MIT):
+
Copyright (c) 2004-2011 QOS.ch
All rights reserved.
View
1  settings.gradle
@@ -25,7 +25,6 @@ include 's4-tools'
//include 's4-example'
//include ':test-apps:simple-adapter-1'
include ':test-apps:simple-deployable-app-1'
-include ':test-apps:simple-deployable-app-2'
include ':test-apps:producer-app'
include ':test-apps:consumer-app'
View
6 subprojects/s4-core/src/main/java/org/apache/s4/core/Main.java
@@ -121,7 +121,7 @@ private static void startNode(MainArgs mainArgs) {
}
if (mainArgs.zkConnectionString != null) {
- mainArgs.extraNamedParameters.add("cluster.zk_address=" + mainArgs.zkConnectionString);
+ mainArgs.extraNamedParameters.add("s4.cluster.zk_address=" + mainArgs.zkConnectionString);
}
if (!mainArgs.extraNamedParameters.isEmpty()) {
@@ -160,7 +160,7 @@ private static void startNode(MainArgs mainArgs) {
/**
* Defines command parameters.
- *
+ *
*/
@Parameters(separators = "=")
public static class MainArgs {
@@ -196,7 +196,7 @@ private static void startNode(MainArgs mainArgs) {
/**
* Parameters parsing utility.
- *
+ *
*/
public static class InlineConfigParameterConverter implements IStringConverter<String> {
View
6 subprojects/s4-tools/src/main/java/org/apache/s4/tools/ZKServer.java
@@ -108,9 +108,9 @@ static private void deleteDirectory(File path) {
}
}
}
- }
- if (!path.delete()) {
- logger.error("Could not delete directory {}", path.getAbsolutePath());
+ if (!path.delete()) {
+ logger.error("Could not delete directory {}", path.getAbsolutePath());
+ }
}
}
View
2  subprojects/s4-tools/src/main/resources/templates/build.gradle
@@ -19,7 +19,7 @@
project.ext["s4AppInstallDir"] = hasProperty('appsDir') ? "$appsDir" : "/tmp/appsDir"
-project.ext["s4Version"] = '0.5.0-SNAPSHOT'
+project.ext["s4Version"] = '0.5.0-incubating'
description = 'Apache S4 App'
//defaultTasks 'installS4R'
project.ext["archivesBaseName"] = "$project.name"
View
2  subprojects/s4-tools/src/main/resources/templates/s4
@@ -5,7 +5,7 @@ case "$1" in
# we need something different in order to pass the classpath of the current project
# you must specify: appClassName (extends AdapterApp class) , cluster name, output stream name
# current syntax is not yet straightforward:
- # example : ./s4 adapter -cluster=c1 -appClass=org.apache.s4.example.twitter.TwitterInputAdapter -namedStringParameters=adapter.output.stream:s1
+ # example : ./s4 adapter -cluster=c1 -appClass=org.apache.s4.example.twitter.TwitterInputAdapter -p=s4.adapter.output.stream:s1
shift 1
<s4_install_dir>/gradlew cp
java -cp `cat classpath.txt` org.apache.s4.core.Main $@
View
49 test-apps/consumer-app/build.gradle
@@ -64,31 +64,29 @@ targetCompatibility = 1.6
/* All project libraries must be defined here. */
project.ext["libraries"] = [
- json: 'org.json:json:20090211',
- guava: 'com.google.guava:guava:10.0.1',
- gson: 'com.google.code.gson:gson:1.6',
- guice: 'com.google.inject:guice:3.0',
- guice_assist: 'com.google.inject.extensions:guice-assistedinject:3.0',
- guice_grapher: 'com.google.inject:guice-grapher:3.0',
- flexjson: 'net.sf.flexjson:flexjson:2.1',
- bcel: 'org.apache.bcel:bcel:5.2',
- jakarta_regexp: 'jakarta-regexp:jakarta-regexp:1.4',
- kryo: 'com.googlecode:kryo:1.04',
- netty: 'org.jboss.netty:netty:3.2.5.Final',
- reflectasm: 'com.esotericsoftware:reflectasm:0.8',
- minlog: 'com.esotericsoftware:minlog:1.2',
- asm: 'asm:asm:3.2',
- commons_io: 'commons-io:commons-io:2.0.1',
- commons_config: 'commons-configuration:commons-configuration:1.6',
- commons_codec: 'commons-codec:commons-codec:1.4',
- commons_httpclient: 'commons-httpclient:commons-httpclient:3.1',
- commons_coll: 'net.sourceforge.collections:collections-generic:4.01', // Use this lib until the commons collection with Generics is released.
- slf4j: 'org.slf4j:slf4j-api:1.6.1',
- logback_core: 'ch.qos.logback:logback-core:0.9.29',
- logback_classic: 'ch.qos.logback:logback-classic:0.9.29',
- zk: 'org.apache.zookeeper:zookeeper:3.3.1',
- jcip: 'net.jcip:jcip-annotations:1.0',
- junit: 'junit:junit:4.10',
+ guava: 'com.google.guava:guava:12.0.1',
+ gson: 'com.google.code.gson:gson:1.6',
+ guice: 'com.google.inject:guice:3.0',
+ guice_assist: 'com.google.inject.extensions:guice-assistedinject:3.0',
+ kryo: 'com.googlecode:kryo:1.04',
+ netty: 'org.jboss.netty:netty:3.2.5.Final',
+ mockito_core: 'org.mockito:mockito-core:1.9.0',
+ commons_config: 'commons-configuration:commons-configuration:1.6',
+ commons_codec: 'commons-codec:commons-codec:1.4',
+ commons_coll: 'net.sourceforge.collections:collections-generic:4.01', // Use this lib until the commons collection with Generics is released.
+ slf4j: 'org.slf4j:slf4j-api:1.6.1',
+ logback_core: 'ch.qos.logback:logback-core:0.9.29',
+ logback_classic: 'ch.qos.logback:logback-classic:0.9.29',
+ zk: 'org.apache.zookeeper:zookeeper:3.3.1',
+ jcip: 'net.jcip:jcip-annotations:1.0',
+ junit: 'junit:junit:4.10',
+ zkclient: 'com.github.sgroschupf:zkclient:0.1',
+ diezel: 'net.ericaro:diezel-maven-plugin:1.0.0-beta-4',
+ jcommander: 'com.beust:jcommander:1.25',
+ gradle_base_services: 'gradle-base-services:gradle-base-services:1.0',
+ gradle_core: 'gradle-core:gradle-core:1.0',
+ gradle_tooling_api: 'gradle-tooling-api:gradle-tooling-api:1.0',
+ gradle_wrapper: 'gradle-wrapper:gradle-wrapper:1.0'
]
@@ -110,7 +108,6 @@ dependencies {
compile( libraries.logback_classic )
/* Commons. */
- compile( libraries.commons_io )
compile( libraries.commons_config )
compile( libraries.commons_coll )
View
45 test-apps/producer-app/build.gradle
@@ -64,31 +64,25 @@ targetCompatibility = 1.6
/* All project libraries must be defined here. */
project.ext["libraries"] = [
- json: 'org.json:json:20090211',
- guava: 'com.google.guava:guava:10.0.1',
- gson: 'com.google.code.gson:gson:1.6',
- guice: 'com.google.inject:guice:3.0',
- guice_assist: 'com.google.inject.extensions:guice-assistedinject:3.0',
- guice_grapher: 'com.google.inject:guice-grapher:3.0',
- flexjson: 'net.sf.flexjson:flexjson:2.1',
- bcel: 'org.apache.bcel:bcel:5.2',
- jakarta_regexp: 'jakarta-regexp:jakarta-regexp:1.4',
- kryo: 'com.googlecode:kryo:1.04',
- netty: 'org.jboss.netty:netty:3.2.5.Final',
- reflectasm: 'com.esotericsoftware:reflectasm:0.8',
- minlog: 'com.esotericsoftware:minlog:1.2',
- asm: 'asm:asm:3.2',
- commons_io: 'commons-io:commons-io:2.0.1',
- commons_config: 'commons-configuration:commons-configuration:1.6',
- commons_codec: 'commons-codec:commons-codec:1.4',
- commons_httpclient: 'commons-httpclient:commons-httpclient:3.1',
- commons_coll: 'net.sourceforge.collections:collections-generic:4.01', // Use this lib until the commons collection with Generics is released.
- slf4j: 'org.slf4j:slf4j-api:1.6.1',
- logback_core: 'ch.qos.logback:logback-core:0.9.29',
- logback_classic: 'ch.qos.logback:logback-classic:0.9.29',
- zk: 'org.apache.zookeeper:zookeeper:3.3.1',
- jcip: 'net.jcip:jcip-annotations:1.0',
- junit: 'junit:junit:4.10',
+ guava: 'com.google.guava:guava:12.0.1',
+ gson: 'com.google.code.gson:gson:1.6',
+ guice: 'com.google.inject:guice:3.0',
+ guice_assist: 'com.google.inject.extensions:guice-assistedinject:3.0',
+ kryo: 'com.googlecode:kryo:1.04',
+ netty: 'org.jboss.netty:netty:3.2.5.Final',
+ mockito_core: 'org.mockito:mockito-core:1.9.0',
+ commons_config: 'commons-configuration:commons-configuration:1.6',
+ commons_codec: 'commons-codec:commons-codec:1.4',
+ commons_coll: 'net.sourceforge.collections:collections-generic:4.01', // Use this lib until the commons collection with Generics is released.
+ slf4j: 'org.slf4j:slf4j-api:1.6.1',
+ logback_core: 'ch.qos.logback:logback-core:0.9.29',
+ logback_classic: 'ch.qos.logback:logback-classic:0.9.29',
+ zk: 'org.apache.zookeeper:zookeeper:3.3.1',
+ jcip: 'net.jcip:jcip-annotations:1.0',
+ junit: 'junit:junit:4.10',
+ zkclient: 'com.github.sgroschupf:zkclient:0.1',
+ diezel: 'net.ericaro:diezel-maven-plugin:1.0.0-beta-4',
+ jcommander: 'com.beust:jcommander:1.25'
]
@@ -110,7 +104,6 @@ dependencies {
compile( libraries.logback_classic )
/* Commons. */
- compile( libraries.commons_io )
compile( libraries.commons_config )
compile( libraries.commons_coll )
View
44 test-apps/simple-deployable-app-1/build.gradle
@@ -64,31 +64,24 @@ targetCompatibility = 1.6
/* All project libraries must be defined here. */
project.ext["libraries"] = [
- json: 'org.json:json:20090211',
- guava: 'com.google.guava:guava:10.0.1',
- gson: 'com.google.code.gson:gson:1.6',
- guice: 'com.google.inject:guice:3.0',
- guice_assist: 'com.google.inject.extensions:guice-assistedinject:3.0',
- guice_grapher: 'com.google.inject:guice-grapher:3.0',
- flexjson: 'net.sf.flexjson:flexjson:2.1',
- bcel: 'org.apache.bcel:bcel:5.2',
- jakarta_regexp: 'jakarta-regexp:jakarta-regexp:1.4',
- kryo: 'com.googlecode:kryo:1.04',
- netty: 'org.jboss.netty:netty:3.2.5.Final',
- reflectasm: 'com.esotericsoftware:reflectasm:0.8',
- minlog: 'com.esotericsoftware:minlog:1.2',
- asm: 'asm:asm:3.2',
- commons_io: 'commons-io:commons-io:2.0.1',
- commons_config: 'commons-configuration:commons-configuration:1.6',
- commons_codec: 'commons-codec:commons-codec:1.4',
- commons_httpclient: 'commons-httpclient:commons-httpclient:3.1',
- commons_coll: 'net.sourceforge.collections:collections-generic:4.01', // Use this lib until the commons collection with Generics is released.
- slf4j: 'org.slf4j:slf4j-api:1.6.1',
- logback_core: 'ch.qos.logback:logback-core:0.9.29',
- logback_classic: 'ch.qos.logback:logback-classic:0.9.29',
- zk: 'org.apache.zookeeper:zookeeper:3.3.1',
- jcip: 'net.jcip:jcip-annotations:1.0',
- junit: 'junit:junit:4.10',
+ guava: 'com.google.guava:guava:12.0.1',
+ gson: 'com.google.code.gson:gson:1.6',
+ guice: 'com.google.inject:guice:3.0',
+ guice_assist: 'com.google.inject.extensions:guice-assistedinject:3.0',
+ kryo: 'com.googlecode:kryo:1.04',
+ netty: 'org.jboss.netty:netty:3.2.5.Final',
+ mockito_core: 'org.mockito:mockito-core:1.9.0',
+ commons_config: 'commons-configuration:commons-configuration:1.6',
+ commons_codec: 'commons-codec:commons-codec:1.4',
+ commons_coll: 'net.sourceforge.collections:collections-generic:4.01', // Use this lib until the commons collection with Generics is released.
+ slf4j: 'org.slf4j:slf4j-api:1.6.1',
+ logback_core: 'ch.qos.logback:logback-core:0.9.29',
+ logback_classic: 'ch.qos.logback:logback-classic:0.9.29',
+ zk: 'org.apache.zookeeper:zookeeper:3.3.1',
+ jcip: 'net.jcip:jcip-annotations:1.0',
+ junit: 'junit:junit:4.10',
+ zkclient: 'com.github.sgroschupf:zkclient:0.1',
+ diezel: 'net.ericaro:diezel-maven-plugin:1.0.0-beta-4'
]
@@ -110,7 +103,6 @@ dependencies {
compile( libraries.logback_classic )
/* Commons. */
- compile( libraries.commons_io )
compile( libraries.commons_config )
compile( libraries.commons_coll )
Please sign in to comment.
Something went wrong with that request. Please try again.