Author: gtrasuk
Date: Mon Feb 9 06:15:23 2015
New Revision: 1658309
URL: http://svn.apache.org/r1658309
Log:
Start-hello-service and start-hello-client now work on Windows as well as OSX.
The classpath separator character in Unix is ':', but it's ';' in Windows. The
service-starter configuration files need to use File.separatorChar rather than
hardcoding the character in the service's classpath.
Modified:
river/river-examples/river-examples/trunk/home/src/main/home/start-hello-client.config
river/river-examples/river-examples/trunk/home/src/main/home/start-hello-service.config
Modified:
river/river-examples/river-examples/trunk/home/src/main/home/start-hello-client.config
URL:
http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/home/src/main/home/start-hello-client.config?rev=1658309&r1=1658308&r2=1658309&view=diff
==============================================================================
---
river/river-examples/river-examples/trunk/home/src/main/home/start-hello-client.config
(original)
+++
river/river-examples/river-examples/trunk/home/src/main/home/start-hello-client.config
Mon Feb 9 06:15:23 2015
@@ -22,6 +22,8 @@
the browser, the api has to be available to download.
*/
+import java.io.File;
+
import com.sun.jini.config.ConfigUtil;
import com.sun.jini.start.NonActivatableServiceDescriptor;
import com.sun.jini.start.ServiceDescriptor;
@@ -29,7 +31,8 @@ import com.sun.jini.start.ServiceDescrip
com.sun.jini.start {
private static policy = "server.policy";
- private static classpath = "lib${/}hello-api.jar:lib${/}hello-client.jar";
+ private static classpath = "lib-dl${/}hello-api.jar "
+ + File.pathSeparator + "lib${/}hello-client.jar";
private static config = "hello-client.config";
private static codebase="";
Modified:
river/river-examples/river-examples/trunk/home/src/main/home/start-hello-service.config
URL:
http://svn.apache.org/viewvc/river/river-examples/river-examples/trunk/home/src/main/home/start-hello-service.config?rev=1658309&r1=1658308&r2=1658309&view=diff
==============================================================================
---
river/river-examples/river-examples/trunk/home/src/main/home/start-hello-service.config
(original)
+++
river/river-examples/river-examples/trunk/home/src/main/home/start-hello-service.config
Mon Feb 9 06:15:23 2015
@@ -22,6 +22,8 @@
the browser, the api has to be available to download.
*/
+import java.io.File;
+
import com.sun.jini.config.ConfigUtil;
import com.sun.jini.start.NonActivatableServiceDescriptor;
import com.sun.jini.start.ServiceDescriptor;
@@ -29,7 +31,8 @@ import com.sun.jini.start.ServiceDescrip
com.sun.jini.start {
private static policy = "server.policy";
- private static classpath = "lib${/}hello-api.jar:lib${/}hello-service.jar";
+ private static classpath = "lib${/}hello-api.jar" + File.pathSeparator
+ + "lib${/}hello-service.jar";
private static config = "hello-service.config";
port="8090";
private static codebasePrefix= "http://" + ConfigUtil.getHostAddress()