You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by bl...@apache.org on 2002/02/12 16:21:00 UTC
cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/util/system Windows95.java Windows98.java
bloritsch 02/02/12 07:21:00
Modified: src/scratchpad/org/apache/avalon/excalibur/util/system
Windows95.java Windows98.java
Log:
fix compile error in Win9x systemutil drivers
Revision Changes Path
1.4 +4 -3 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/util/system/Windows95.java
Index: Windows95.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/util/system/Windows95.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Windows95.java 12 Feb 2002 14:54:25 -0000 1.3
+++ Windows95.java 12 Feb 2002 15:21:00 -0000 1.4
@@ -20,7 +20,7 @@
* can only use one processor--even if there are more installed in the system.
*
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
- * @version CVS $Revision: 1.3 $ $Date: 2002/02/12 14:54:25 $
+ * @version CVS $Revision: 1.4 $ $Date: 2002/02/12 15:21:00 $
*/
public final class Windows95 implements CPUParser
{
@@ -34,8 +34,9 @@
try
{
// This is not the propper environment variable for Win 9x
- proc = rt.exec("command.com /C echo %PROCESSOR_IDENTIFIER%");
- reader = new BufferedReader(new InputStreamReader( proc.getInputStream() ) );
+ Runtime rt = Runtime.getRuntime();
+ Process proc = rt.exec("command.com /C echo %PROCESSOR_IDENTIFIER%");
+ BufferedReader reader = new BufferedReader(new InputStreamReader( proc.getInputStream() ) );
info = reader.readLine();
}
catch (Exception e)
1.3 +4 -3 jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/util/system/Windows98.java
Index: Windows98.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/util/system/Windows98.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Windows98.java 12 Feb 2002 14:54:25 -0000 1.2
+++ Windows98.java 12 Feb 2002 15:21:00 -0000 1.3
@@ -20,7 +20,7 @@
* can only use one processor--even if there are more installed in the system.
*
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
- * @version CVS $Revision: 1.2 $ $Date: 2002/02/12 14:54:25 $
+ * @version CVS $Revision: 1.3 $ $Date: 2002/02/12 15:21:00 $
*/
public final class Windows98 implements CPUParser
{
@@ -34,8 +34,9 @@
try
{
// This is not the propper environment variable for Win 9x
- proc = rt.exec("command.com /C echo %PROCESSOR_IDENTIFIER%");
- reader = new BufferedReader(new InputStreamReader( proc.getInputStream() ) );
+ Runtime rt = Runtime.getRuntime();
+ Process proc = rt.exec("command.com /C echo %PROCESSOR_IDENTIFIER%");
+ BufferedReader reader = new BufferedReader(new InputStreamReader( proc.getInputStream() ) );
info = reader.readLine();
}
catch (Exception e)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>