diff test/org/tmatesoft/hg/test/ExecHelper.java @ 111:32e794c599d7

Reminder comment why exe check goes first
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 01 Feb 2011 00:19:31 +0100
parents 0170f95ca915
children a736f42ed75b
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/ExecHelper.java	Mon Jan 31 19:42:19 2011 +0100
+++ b/test/org/tmatesoft/hg/test/ExecHelper.java	Tue Feb 01 00:19:31 2011 +0100
@@ -49,6 +49,7 @@
 				if (new File(pe, cmd[0] + ".exe").exists()) {
 					break;
 				}
+				// PATHEXT controls precedence of .exe, .bat and .cmd files, ususlly .exe wins
 				if (new File(pe, cmd[0] + ".bat").exists() || new File(pe, cmd[0] + ".cmd").exists()) {
 					ArrayList<String> command = new ArrayList<String>();
 					command.add("cmd.exe");