bodewig 02/01/29 09:36:06
Modified: src/main/org/apache/tools/ant/taskdefs Execute.java
Log:
a little more cleanup
Revision Changes Path
1.33 +4 -5
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Execute.java
Index: Execute.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Execute.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -r1.32 -r1.33
--- Execute.java 29 Jan 2002 17:26:38 -0000 1.32
+++ Execute.java 29 Jan 2002 17:36:06 -0000 1.33
@@ -69,7 +69,6 @@
import java.io.ByteArrayOutputStream;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import java.util.Locale;
import java.util.Vector;
/**
@@ -77,7 +76,7 @@
*
* @author [EMAIL PROTECTED]
*
- * @version $Revision: 1.32 $
+ * @version $Revision: 1.33 $
*/
public class Execute {
@@ -146,7 +145,7 @@
shellLauncher = new ScriptCommandLauncher("bin/antRun.bat",
baseLauncher);
}
}
- else if ( (new Os("netware")).eval() ) {
+ else if ( Os.isFamily("netware") ) {
// NetWare. Need to determine which JDK we're running in
CommandLauncher baseLauncher;
if ( System.getProperty("java.version").startsWith("1.1") ) {
@@ -234,7 +233,7 @@
return cmd;
}
else {
- // Windows 98/95 - need to use an auxiliary script
+ // Windows 98/95
String[] cmd = {"command.com", "/c", "set" };
return cmd;
}
@@ -652,7 +651,7 @@
}
/**
- * A command launcher for Windows 2000/NT that uses 'cmd.exe' when
+ * A command launcher for Windows XP/2000/NT that uses 'cmd.exe' when
* launching commands in directories other than the current working
* directory.
*/
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>