You are viewing a plain text version of this content. The canonical link for it is here.
Posted to s4-commits@incubator.apache.org by mm...@apache.org on 2012/07/26 10:52:40 UTC
[3/16] git commit: Fix build version and dependencies in subproject
files,
- also fixed misnamed parameter in Main class - fixed path leading to error
message in ZkServer
Fix build version and dependencies in subproject files,
- also fixed misnamed parameter in Main class
- fixed path leading to error message in ZkServer
Project: http://git-wip-us.apache.org/repos/asf/incubator-s4/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s4/commit/17de52df
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s4/tree/17de52df
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s4/diff/17de52df
Branch: refs/heads/piper
Commit: 17de52dfa94da9c7ddf1a29c849107df6defc3d5
Parents: 96eddf8
Author: Matthieu Morel <mm...@apache.org>
Authored: Thu Jul 26 00:44:28 2012 +0200
Committer: Matthieu Morel <mm...@apache.org>
Committed: Thu Jul 26 01:24:48 2012 +0200
----------------------------------------------------------------------
LICENSE | 2 +
settings.gradle | 1 -
.../src/main/java/org/apache/s4/core/Main.java | 6 +-
.../main/java/org/apache/s4/tools/ZKServer.java | 6 +-
.../src/main/resources/templates/build.gradle | 2 +-
.../s4-tools/src/main/resources/templates/s4 | 2 +-
test-apps/consumer-app/build.gradle | 49 +++++++--------
test-apps/producer-app/build.gradle | 45 ++++++--------
test-apps/simple-deployable-app-1/build.gradle | 44 +++++--------
9 files changed, 70 insertions(+), 87 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index fbb4f12..66486af 100644
--- a/LICENSE
+++ b/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.
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/settings.gradle
----------------------------------------------------------------------
diff --git a/settings.gradle b/settings.gradle
index 48e63cf..c2b9b67 100644
--- a/settings.gradle
+++ b/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'
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/subprojects/s4-core/src/main/java/org/apache/s4/core/Main.java
----------------------------------------------------------------------
diff --git a/subprojects/s4-core/src/main/java/org/apache/s4/core/Main.java b/subprojects/s4-core/src/main/java/org/apache/s4/core/Main.java
index 1aae58d..74116a1 100644
--- a/subprojects/s4-core/src/main/java/org/apache/s4/core/Main.java
+++ b/subprojects/s4-core/src/main/java/org/apache/s4/core/Main.java
@@ -121,7 +121,7 @@ public class Main {
}
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 @@ public class Main {
/**
* Defines command parameters.
- *
+ *
*/
@Parameters(separators = "=")
public static class MainArgs {
@@ -196,7 +196,7 @@ public class Main {
/**
* Parameters parsing utility.
- *
+ *
*/
public static class InlineConfigParameterConverter implements IStringConverter<String> {
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/subprojects/s4-tools/src/main/java/org/apache/s4/tools/ZKServer.java
----------------------------------------------------------------------
diff --git a/subprojects/s4-tools/src/main/java/org/apache/s4/tools/ZKServer.java b/subprojects/s4-tools/src/main/java/org/apache/s4/tools/ZKServer.java
index 1a134ba..de56788 100644
--- a/subprojects/s4-tools/src/main/java/org/apache/s4/tools/ZKServer.java
+++ b/subprojects/s4-tools/src/main/java/org/apache/s4/tools/ZKServer.java
@@ -108,9 +108,9 @@ public class ZKServer {
}
}
}
- }
- if (!path.delete()) {
- logger.error("Could not delete directory {}", path.getAbsolutePath());
+ if (!path.delete()) {
+ logger.error("Could not delete directory {}", path.getAbsolutePath());
+ }
}
}
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/subprojects/s4-tools/src/main/resources/templates/build.gradle
----------------------------------------------------------------------
diff --git a/subprojects/s4-tools/src/main/resources/templates/build.gradle b/subprojects/s4-tools/src/main/resources/templates/build.gradle
index d1810a2..bedbdef 100644
--- a/subprojects/s4-tools/src/main/resources/templates/build.gradle
+++ b/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"
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/subprojects/s4-tools/src/main/resources/templates/s4
----------------------------------------------------------------------
diff --git a/subprojects/s4-tools/src/main/resources/templates/s4 b/subprojects/s4-tools/src/main/resources/templates/s4
index fd54444..45c5efd 100644
--- a/subprojects/s4-tools/src/main/resources/templates/s4
+++ b/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 $@
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/test-apps/consumer-app/build.gradle
----------------------------------------------------------------------
diff --git a/test-apps/consumer-app/build.gradle b/test-apps/consumer-app/build.gradle
index 9961774..d8d56c4 100644
--- a/test-apps/consumer-app/build.gradle
+++ b/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 )
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/test-apps/producer-app/build.gradle
----------------------------------------------------------------------
diff --git a/test-apps/producer-app/build.gradle b/test-apps/producer-app/build.gradle
index 7b5c495..8f79377 100644
--- a/test-apps/producer-app/build.gradle
+++ b/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 )
http://git-wip-us.apache.org/repos/asf/incubator-s4/blob/17de52df/test-apps/simple-deployable-app-1/build.gradle
----------------------------------------------------------------------
diff --git a/test-apps/simple-deployable-app-1/build.gradle b/test-apps/simple-deployable-app-1/build.gradle
index cde3b1e..a2b216f 100644
--- a/test-apps/simple-deployable-app-1/build.gradle
+++ b/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 )