On Thu, 10 Jul 2008, <[EMAIL PROTECTED]> 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. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]