Browse Source

Improve OS related messages in Exec

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269277 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
53775a646a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/ExecTask.java

+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/ExecTask.java View File

@@ -187,10 +187,10 @@ public class ExecTask extends Task {
protected boolean isValidOs() {
// test if os match
String myos = System.getProperty("os.name");
log("Myos = " + myos, Project.MSG_VERBOSE);
log("Current OS is " + myos, Project.MSG_VERBOSE);
if ((os != null) && (os.indexOf(myos) < 0)){
// this command will be executed only on the specified OS
log("Not found in " + os, Project.MSG_VERBOSE);
log("This OS, " + myos + " was not found in the specified list of valid OSes: " + os, Project.MSG_VERBOSE);
return false;
}
return true;


Loading…
Cancel
Save