Permalink
Browse files

updated to 1.2.0.RELEASE

  • Loading branch information...
1 parent dee94ac commit 4d0e9bac8534fe7c6578bca14374e07d8f91dd8b David Turanski committed Oct 9, 2012
View
@@ -8,9 +8,6 @@ allprojects {
logging.captureStandardOutput LogLevel.DEBUG
repositories {
- //TODO: Resolve JMS Dependency
- //Temporary to get the latest SGF snapshot
- mavenLocal()
// Public Spring artifacts
maven { url 'http://repo.springsource.org/libs-milestone' }
maven { url 'http://repo.springsource.org/libs-snapshot'}
@@ -19,17 +16,6 @@ allprojects {
}
}
-
-/*
-apply {
- project.allprojects.findAll{it != rootProject}.each { proj ->
- task "run-${proj.name}" << {
- proj.tasks['run'].execute()
- }
- }
-
-}
-*/
task listProjects << {
subprojects.each { project ->
@@ -107,6 +93,20 @@ subprojects { subproject ->
}
}
+task 'run-generic-server'(type:JavaExec) {
+ description "Runs a generic server"
+ main = 'org.springframework.data.gemfire.examples.GenericServer'
+ classpath = subprojects.find { it.name == 'spring-gemfire-examples-common' }
+ .sourceSets.main.runtimeClasspath;
+
+ standardInput = System.in
+ systemProperties = System.getProperties()
+ if (rootProject.hasProperty('args')) {
+ args = ["${rootProject.getProperty('args')}"]
+ }
+}
+
+
project('spring-gemfire-examples-common') {
dependencies {
compile "org.springframework.data:spring-data-gemfire:$version"
View
@@ -1,6 +1,6 @@
junitVersion = 4.8.2
springVersion = 3.1.2.RELEASE
-version = 1.2.0.BUILD-SNAPSHOT
+version = 1.2.0.RELEASE
log4jVersion = 1.2.16
slf4jVersion = 1.6.4
-springDataCommonsVersion=1.4.0.RC1
+springDataCommonsVersion=1.4.0.RELEASE
@@ -0,0 +1,28 @@
+package org.springframework.data.gemfire.examples;
+
+import java.io.IOException;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.springframework.context.support.FileSystemXmlApplicationContext;
+
+public class GenericServer {
+
+ private static Log log = LogFactory.getLog(GenericServer.class);
+ public static void main(String args[]) throws IOException {
+ if (args.length >= 1) {
+ log.debug("initializing application context from Spring bean definition file " + args[0]);
+ } else {
+ System.out.println("usage: GenericServer <spring-bean-definition file>");
+ System.exit(1);
+ }
+
+ new FileSystemXmlApplicationContext(args[0]);
+
+ System.out.println("Press <Enter> to terminate");
+ System.in.read();
+ System.exit(0);
+
+
+ }
+}

0 comments on commit 4d0e9ba

Please sign in to comment.