I have now tried to build log4cxx using ANT, and I must say it was very nice. I made a little batch file to assist me:

for VS6

set CLASSPATH=%BEDEV%\libs\cpptasks.jar
call d:\VS6\VC98\Bin\VCVARS32.BAT
call C:\Program\apache-ant-1.6.2\bin\ant.bat  %1 %2 %3 %4 %5

and for VS.NET 2003

set CLASSPATH=%BEDEV%\libs\cpptasks.jar
call "c:\program\Microsoft Visual Studio .NET 2003\Common7\Tools\vsvars32.bat"
call C:\Program\apache-ant-1.6.2\bin\ant.bat %1 %2 %3 %4 %5

and without any parameters it builds the static debug configuration, and with clean as parameter the built files are deleted.
If you want to find some more parameters look in build.xml
I just thought this could help some other Ant newbies.
I do get a few unit test errors, but more about that in next mail.
And a little more information from:  http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=509

--
/Björn Carlsson
VersionSupport.com

Reply via email to