How to enable BigProjectLogger?

Has anyone been able to enable this in ant with teamcity builds? (-Dlogger org.apache.tools.ant.listener.BigProjectLogger)
I tried it in ANT_ARGS in bash_profile but that was ignored by teamcity.
I tried it in the Additional Ant command line parameters but that was also ignored.

I put it in the JVM command line parameters (with a -D like -Dlogger org.apache.tools.ant.listener.BigProjectLogger).
It detected that and tried to use it but complained that it wasn't found.

[16:03:48]: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/listener/BigProjectLogger
[16:03:48]: Caused by: java.lang.ClassNotFoundException: org.apache.tools.ant.listener.BigProjectLogger
[16:03:48]: at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[16:03:48]: at java.security.AccessController.doPrivileged(Native Method)
[16:03:48]: at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[16:03:48]: at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[16:03:48]: at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[16:03:48]: at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[16:03:48]: Could not find the main class: org.apache.tools.ant.listener.BigProjectLogger. Program will exit.
[16:03:48]: Publishing internal artifacts
[16:03:48]: [Publishing internal artifacts] Sending build.finish.properties.gz file
[16:03:48]: Build finished

But I checked the ant jar file we are using (we set our own ant home path) and it is there.
[oms-buildadm@dvusa10064] lib $ jar -tvf ant.jar |grep BigProjectLogger

  3510 Fri Apr 30 18:01:30 PDT 2010 org/apache/tools/ant/listener/BigProjectLogger.class
   910 Fri Apr 30 18:01:30 PDT 2010 org/apache/tools/ant/listener/SimpleBigProjectLogger.class



When I run ant from the commandline on my agent, it works because of the ANT_ARGS setting. But from the TC builds, it doesn't.

Please sign in to leave a comment.