You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2011/10/27 07:15:53 UTC
svn commit: r1189605 - in /commons/sandbox/runtime/trunk: build.xml
src/main/java/org/apache/commons/runtime/util/Getopt.java
src/main/test/org/apache/commons/runtime/TestServerEndpoint.java
Author: mturk
Date: Thu Oct 27 05:15:53 2011
New Revision: 1189605
URL: http://svn.apache.org/viewvc?rev=1189605&view=rev
Log:
Use a correct selector type for test. Perhaps we should throw something on missuse
Modified:
commons/sandbox/runtime/trunk/build.xml
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Getopt.java
commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestServerEndpoint.java
Modified: commons/sandbox/runtime/trunk/build.xml
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/build.xml?rev=1189605&r1=1189604&r2=1189605&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/build.xml (original)
+++ commons/sandbox/runtime/trunk/build.xml Thu Oct 27 05:15:53 2011
@@ -249,7 +249,7 @@ The Apache Software Foundation (http://w
<filter token="VERSION_PNAME" value="${final.name}"/>
<filter token="VERSION_BUILT" value="${TODAY} ${TSTAMP}"/>
<copy todir="${build.src}/examples" filtering="yes">
- <fileset dir="${src.base}/examples">
+ <fileset dir="${src.base}/main/examples">
<include name="**/*.java"/>
<include name="**/*.xml"/>
<include name="**/*.properties"/>
@@ -537,7 +537,7 @@ The Apache Software Foundation (http://w
<env key="PATH" path="${runtime.library.path}:${java.library.path}:${env.PATH}"/>
<jvmarg value="-Djava.library.path=${runtime.library.path}"/>
<jvmarg value="-Xmx512m"/>
- <jvmarg line="${args}"/>
+ <arg line="${args}"/>
</java>
</target>
</project>
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Getopt.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Getopt.java?rev=1189605&r1=1189604&r2=1189605&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Getopt.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/util/Getopt.java Thu Oct 27 05:15:53 2011
@@ -24,6 +24,7 @@ package org.apache.commons.runtime.util;
public class Getopt
{
+
private static final char[] EMSG = { 0 };
private char[][] argv;
private int argc;
Modified: commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestServerEndpoint.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestServerEndpoint.java?rev=1189605&r1=1189604&r2=1189605&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestServerEndpoint.java (original)
+++ commons/sandbox/runtime/trunk/src/main/test/org/apache/commons/runtime/TestServerEndpoint.java Thu Oct 27 05:15:53 2011
@@ -105,7 +105,7 @@ public class TestServerEndpoint extends
{
System.out.println("Testing ServerSocketEndpoint ...");
- Selector ps = Selector.open(EndpointType.LOCAL);
+ Selector ps = Selector.open(EndpointType.SOCKET);
SocketServerEndpoint ss = new SocketServerEndpoint();
InetSocketAddress sa = new InetSocketAddress("127.0.0.1", 0);
ss.configureBlocking(false);