ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "External Lists" <>
Subject Suggestion for Ant
Date Sun, 30 Apr 2000 22:32:02 GMT
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

<             if (!dir.equals(project.resolveFile(".")))
<                 command = "cmd /c cd " + dir + " && " + command;
>              command = "cmd /c cd " + dir + " && " + command;

View raw message