Shawn, 'exec' runs a process. Side-effects (environment variables, etc) that happen in the process are lost when the process exits. If you want this behavior, then you could generate a script on the fly that does the equivalent ("set-some-vars\nrun-the-command\n").
If you want one task to choose the vars, and another to run the command, then you could create a temporary file that contains config info that is built up as the tasks execute: init-config: create empty "config" file setup (depends on init-config): append "set-some-vars" to config setup2 (depends on init-config): append "set-other-vars" to config run (depends on setup and setup2): exec "config ; run-command" -Justin office 8-383-6725, 212-272-6725; cell 917-861-6042 -----Original Message----- From: Shawn Castrianni [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 08, 2008 11:32 PM To: 'user@ant.apache.org' Subject: exec task Oh yeah, and it would be nice if one exec task could continue a previous exec task environment. So if one exec task calls a batch file that sets some env variables or something, the next exec task could have an option to continue the environment setup by the previous exec task and execute something else with the batch file already having been run. --- Shawn Castrianni ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. *********************************************************************** Bear Stearns is not responsible for any recommendation, solicitation, offer or agreement or any information about any transaction, customer account or account activity contained in this communication. *********************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]