hi,

I want to get some data what are the most time consuming tasks in my PDEBuild based build. Because we already use ant-contrib, I thought of using their performance monitor, which usually is invoked with

ant -listener net.sf.antcontrib.perf.AntPerformanceListener target


However when using java -jar equinox.launcher -application o.e.core.antRunner it obviously doesn't work for class-loading reasons. I tried some simple hacks, like java -cp lib\ant-contrib.jar, or setting the CLASSPATH=lib\ant-contrib.jar, I also looked at org.apache.tools.ant.AntClassLoader which seems to take different approach for org.apache.ant.* classes vs. other classes. But still no progress.

Anyone had more success with monitoring their PDEBuild based builds? :-)


thanx

Jacek


For reference here's class-loading exception I'm getting:

java.lang.ClassNotFoundException: net.sf.antcontrib.perf.AntPerformanceListener
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at 
org.eclipse.ant.internal.core.AntClassLoader.findClass(AntClassLoader.java:54)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:169)
        at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.addBuildListeners(InternalAntRunner.java:206)
        at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:569)
        at 
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:534)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
        at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
        at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
        at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:367)
        at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:611)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1339)






_______________________________________________
dash-dev mailing list
dash-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/dash-dev

Reply via email to