Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 12164 invoked from network); 2 Mar 2003 19:38:56 -0000 Received: from ms-smtp-01.nyroc.rr.com (24.92.226.148) by daedalus.apache.org with SMTP; 2 Mar 2003 19:38:56 -0000 Received: from fiber (syr-24-95-176-50.twcny.rr.com [24.95.176.50]) by ms-smtp-01.nyroc.rr.com (8.12.5/8.12.2) with ESMTP id h22Jcxb1016291 for ; Sun, 2 Mar 2003 14:39:00 -0500 (EST) From: Kevin Brown To: user@ant.apache.org Subject: ANT with MSDev Date: Sun, 2 Mar 2003 14:38:26 -0500 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200303021438.26998.hybrid@twcny.rr.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm trying to replace my horrible NT batch scripts with ANT. I'm failing miserably and would greatly appreciate some assistance. Very briefly, I've got a bunch of VC++ projects that I currently compile with the msdev command, pointing to the workspace files and using the /USEENV flag. The /USEENV flag lets me specify the INCLUDE and LIB paths in my batch script. In my ANT build.xml file, I'm using the "exec" task to launch "msdev", and I'm using "arg" to pass in the workspace and parameters. This works fine if I don't use the /USEENV parameter. As soon as I do, MSDev complains that it can't find some AFX header files, which I would expect. I put the following: as a nested element of my "exec" task (right beneath the arguments), but it doesn't help any. Looking at the verbose output, it tells me that it sets INCLUDE to what I want, but I still get errors from the compiler telling me it can't find the header files. Any suggestions? I'm not terribly interested in the cpptask stuff, because I do want to make use of the existing workspace files that we have (to keep it simple I suppose). Thanks in advance, Kevin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+Yl2yn8LJsdIuubMRAtg6AJ9luvyzUSmF03d0hHnHo1WUmQqqoQCeNt++ kashiT+ZM4ASLc5YQ0lc/O0= =jXx5 -----END PGP SIGNATURE-----