ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Making listener visible to Ant
Date Fri, 11 Jul 2008 06:48:58 GMT
On Thu, 10 Jul 2008, <> wrote:

> Hello everyone.  I've created my own listener CustomXmlLogger that
> is a child of XmlLogger and packed it in VCS.jar. I don't want to
> copy it to ANT_HOME/lib so I tried to include a reference to the
> archive in my Ant call.  But I've got a problem. When I launch a
> build Ant indicates on LinkageError:

This is because your class references classes from ant.jar that will
not be on the system classloader when you start ant via

> "C:\Program files\Java\jdk1.5.0_08\bin\java.exe" -classpath
>  c:\bin\apache-ant-1.7.0\lib\ant-launcher.jar;VCS.jar
> -DXmlLogger.file=build_tes
> t_log.xml -DXmlLogger.level=WARN -Dant.home=c:\bin\apache-ant-1.7.0
> org.apache.t
> ools.ant.launch.Launcher -listener
> com.kvazarmicro.umc.vcs.utils.CustomXmlLogger

while your class is on the system classloader.

Alternatives to ANT_HOME/lib are $HOME/.ant/lib and the -lib command
line argument.

I don't see any other option ATM.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message