You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Björn Carlsson <ma...@versionsupport.com> on 2005/03/02 10:25:35 UTC

Nice Ant build

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/ReadMsg?listName=log4cxx-dev@logging.apache.org&msgNo=509 
<http://nagoya.apache.org/eyebrowse/ReadMsg?listName=log4cxx-dev@logging.apache.org&msgNo=509>

-- 
/Björn Carlsson
VersionSupport.com <http://versionsupport.com>


Re: Nice Ant build

Posted by Björn Carlsson <ma...@versionsupport.com>.
I found out that to build log4cxx you should have a patch executable in 
your path, on Windows you don't always/normally have that. But it is 
included in Cygwin (in the package patch  ;-)    
http://www.cygwin.com/). It's needed to apply apr-1.1.0.patch .
Well that's all.

on 2005-03-02 10:25 Björn Carlsson wrote:

> 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/ReadMsg?listName=log4cxx-dev@logging.apache.org&msgNo=509 
> <http://nagoya.apache.org/eyebrowse/ReadMsg?listName=log4cxx-dev@logging.apache.org&msgNo=509>
>
> -- 
> /Björn Carlsson
> VersionSupport.com <http://versionsupport.com>
>
>------------------------------------------------------------------------
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.0.300 / Virus Database: 266.5.7 - Release Date: 2005-03-01
>  
>