You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/10/16 17:18:23 UTC

svn commit: r1023304 - /commons/proper/daemon/trunk/src/samples/AloneService.java

Author: sebb
Date: Sat Oct 16 15:18:15 2010
New Revision: 1023304

URL: http://svn.apache.org/viewvc?rev=1023304&view=rev
Log:
Use Java 1.3-compatible method

Modified:
    commons/proper/daemon/trunk/src/samples/AloneService.java

Modified: commons/proper/daemon/trunk/src/samples/AloneService.java
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/samples/AloneService.java?rev=1023304&r1=1023303&r2=1023304&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/samples/AloneService.java (original)
+++ commons/proper/daemon/trunk/src/samples/AloneService.java Sat Oct 16 15:18:15 2010
@@ -45,7 +45,7 @@ public class AloneService {
     public void init(String[] arguments)
     throws Exception {
         /* Set the err */
-        System.setErr(new PrintStream(new FileOutputStream(new File("/ServiceDaemon.err"),true)));
+        System.setErr(new PrintStream(new FileOutputStream("/ServiceDaemon.err",true)));
         System.err.println("ServiceDaemon: instance "+this.hashCode()+
                            " init");