Suggestion for Ant:
There is an unintended difference on Windows in the <exec> task when a
directory *is* vs. *is not* specified and different from ".". In one case,
the command goes through "cmd.exe /c" vs. being run directly. This can
change what command syntax is legal, such as slashes, multiple commands,
setting env. vars, etc.). In any case, the process's working directory is
not changed when the specified dir when Ant recurses into a new base
directory using the <ant> built-in task, so a recursive build will fail. My
proposed change is to simply always change directories before running the
command:
< if (!dir.equals(project.resolveFile(".")))
< command = "cmd /c cd " + dir + " && " + command;
---
> command = "cmd /c cd " + dir + " && " + command;
BEGIN:VCARD
VERSION:2.1
N:Cocula;John;W.
FN:John W. Cocula
ORG:Managed Objects;Development
TITLE:Founder and CTO
TEL;WORK;VOICE:+1 703-208-3330
TEL;CELL;VOICE:703-930-7843
TEL;WORK;FAX:+1 703-208-3331
TEL;HOME;FAX:703-208-3331
ADR;WORK:;;7925 Westpark Drive;McLean;VA;22102
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:7925 Westpark Drive=0D=0AMcLean, VA 22102
X-WAB-GENDER:2
URL:http://www.cocula.com
URL:http://www.ManagedObjects.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20000430T223202Z
END:VCARD