[ant-contrib - Help] RE: Problems with msvc and mingw g++

"SourceForge.net" <[email protected]> Wed, 09 Apr 2008 06:41:21 -0700
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4894799
By: daffl

Hm, should have tried this batch file before running ant:
%VS80COMNTOOLS%vsvars32.bat
echo %VCINSTALLDIR%

After that it works. 
Strange thing is, that an exec from within the build skript doesn't set the
environment variables for ant:

<target name="init_win32" if="is_win32">
	<property environment="env" />
	<property name="compiler" value="msvc" />
	<property name="vsvars32" value="${env.VS80COMNTOOLS}vsvars32.bat" />
	<echo>Loading Visual Studio environment variables (from ${vsvars32})</echo>		
	<exec executable="${vsvars32}" />
	<echo>${env.VCINSTALLDIR}</echo>
</target>

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=113701

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone