[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.memory-analyzer] Re: can we use Ant to run the memory analyzer

How can we use Ant to run the memory analyzer?

Be sure to update it to the right version numbers, but something like this should work:


<java classname="org.eclipse.equinox.launcher.Main" fork="true" failonerror="true">
<arg value="-application" />
<arg value="org.eclipse.mat.api.parse" />
<arg value="path/to/dump" />
<arg value="org.eclipse.mat.api:suspects" />


<classpath>
<pathelement location="${matLocation}/plugins/org.eclipse.equinox.launcher_${equinoxLauncherPluginVersion}.jar" />
</classpath>
</java>