Remove obsolete launch file. Added stacktrace command for equinox console which will print stacktrace of all currently active thread.
This commit is contained in:
parent
ac91965779
commit
5eb67ad6d3
|
@ -1,55 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
|
||||||
<listEntry value="/org.adempiere.base/src/org/adempiere/util/GenerateModel.java"/>
|
|
||||||
</listAttribute>
|
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
|
||||||
<listEntry value="1"/>
|
|
||||||
</listAttribute>
|
|
||||||
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
|
|
||||||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
|
||||||
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
|
||||||
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
|
||||||
</listAttribute>
|
|
||||||
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER" javaProject="base" path="1" type="4"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry id="org.eclipse.jdt.launching.classpathentry.defaultClasspath"> <memento exportedEntriesOnly="false" project="base"/> </runtimeClasspathEntry> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry path="3" projectName="glassfishfacet" type="1"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry path="3" projectName="looks" type="1"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry path="3" projectName="base" type="1"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry path="3" projectName="tools" type="1"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/jstl.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/Verisign.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/standard.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/barbecue-1.5-beta1.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/poi-3.0.1-FINAL-20070705.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/log4j.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/activation.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/mail.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/jpayment.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/bsh-2.0b5.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/script-api.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/bsh-engine.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/groovy-all-1.5.1.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/groovy-engine.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/jython.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/jython-engine.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/jcommon-1.0.14.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/jfreechart-1.0.11.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/tools/lib/javaee.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry path="3" projectName="jbossfacet" type="1"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry path="3" projectName="jboss" type="1"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/jboss/client/jboss-client.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/jboss/client/jboss-common-client.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/jboss/client/jboss-j2ee.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/jboss/client/jbosssx-client.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/jboss/client/jboss-transaction-client.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/jboss/client/jnp-client.jar" path="3" type="2"/> "/>
|
|
||||||
<listEntry value="<?xml version="1.0" encoding="UTF-8"?> <runtimeClasspathEntry internalArchive="/jboss/client/jmx-invoker-adaptor-client.jar" path="3" type="2"/> "/>
|
|
||||||
</listAttribute>
|
|
||||||
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.adempiere.util.GenerateModel"/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="${workspace_loc:base}/src/org/compiere/model/ org.compiere.model "'D','A','U'""/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.adempiere.base"/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-DPropertyFile=${workspace_loc}/adempiere/Adempiere/Adempiere.properties"/>
|
|
||||||
</launchConfiguration>
|
|
|
@ -161,6 +161,7 @@ Import-Package: com.sun.mail.smtp;version="1.4.0",
|
||||||
org.apache.tools.ant,
|
org.apache.tools.ant,
|
||||||
org.apache.tools.ant.taskdefs,
|
org.apache.tools.ant.taskdefs,
|
||||||
org.eclipse.core.runtime;version="3.4.0",
|
org.eclipse.core.runtime;version="3.4.0",
|
||||||
|
org.eclipse.osgi.framework.console;version="1.1.0",
|
||||||
org.osgi.framework,
|
org.osgi.framework,
|
||||||
org.restlet,
|
org.restlet,
|
||||||
org.restlet.data,
|
org.restlet.data,
|
||||||
|
@ -168,3 +169,4 @@ Import-Package: com.sun.mail.smtp;version="1.4.0",
|
||||||
org.restlet.util
|
org.restlet.util
|
||||||
Eclipse-BuddyPolicy: registered
|
Eclipse-BuddyPolicy: registered
|
||||||
Eclipse-ExtensibleAPI: true
|
Eclipse-ExtensibleAPI: true
|
||||||
|
Bundle-Activator: org.adempiere.base.BaseActivator
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
|
||||||
<listEntry value="/org.adempiere.base/src/org/adempiere/util/ModelClassGenerator.java"/>
|
|
||||||
</listAttribute>
|
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
|
||||||
<listEntry value="1"/>
|
|
||||||
</listAttribute>
|
|
||||||
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
|
|
||||||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
|
||||||
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
|
||||||
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
|
||||||
</listAttribute>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.adempiere.util.ModelClassGenerator"/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="${workspace_loc:base}/src/org/compiere/model/ org.compiere.model "'D', 'U', 'A', 'C'""/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.adempiere.base"/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-DPropertyFile=${workspace_loc}/adempiere/Adempiere/Adempiere.properties"/>
|
|
||||||
</launchConfiguration>
|
|
|
@ -1,18 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
|
||||||
<listEntry value="/org.adempiere.base/src/org/adempiere/util/ModelInterfaceGenerator.java"/>
|
|
||||||
</listAttribute>
|
|
||||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
|
||||||
<listEntry value="1"/>
|
|
||||||
</listAttribute>
|
|
||||||
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
|
|
||||||
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
|
||||||
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
|
||||||
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
|
||||||
</listAttribute>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.adempiere.util.ModelInterfaceGenerator"/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="${workspace_loc:base}/src/org/compiere/model/ org.compiere.model "'D', 'U', 'A', 'C'""/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.adempiere.base"/>
|
|
||||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-DPropertyFile=${workspace_loc}/adempiere/Adempiere/Adempiere.properties"/>
|
|
||||||
</launchConfiguration>
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
## buckminster.properties ##
|
||||||
|
#Where all the output should go
|
||||||
|
buckminster.output.root=${user.home}/buckminster.output
|
||||||
|
# Where the temp files should go
|
||||||
|
buckminster.temp.root=${user.home}/tmp
|
||||||
|
# How .qualifier in versions should be replaced
|
||||||
|
qualifier.replacement.*=generator:buildTimestamp
|
||||||
|
generator.buildTimestamp.format='v'yyyyMMdd-HHmm
|
||||||
|
target.os=*
|
||||||
|
target.ws=*
|
||||||
|
target.arch=*
|
|
@ -0,0 +1,39 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package org.adempiere.base;
|
||||||
|
|
||||||
|
import org.adempiere.base.equinox.StackTraceCommand;
|
||||||
|
import org.eclipse.osgi.framework.console.CommandProvider;
|
||||||
|
import org.osgi.framework.BundleActivator;
|
||||||
|
import org.osgi.framework.BundleContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author hengsin
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class BaseActivator implements BundleActivator {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public BaseActivator() {
|
||||||
|
// TODO Auto-generated constructor stub
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void start(BundleContext context) throws Exception {
|
||||||
|
context.registerService(CommandProvider.class.getName(), new StackTraceCommand(), null);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void stop(BundleContext context) throws Exception {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
package org.adempiere.base.equinox;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.eclipse.osgi.framework.console.CommandProvider;
|
||||||
|
import org.eclipse.osgi.framework.console.CommandInterpreter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author hengsin
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class StackTraceCommand implements CommandProvider {
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public StackTraceCommand() {
|
||||||
|
// TODO Auto-generated constructor stub
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.osgi.framework.console.CommandProvider#getHelp()
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getHelp() {
|
||||||
|
return "\tstacktrace - print stacktrace of all alive thread\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void _stacktrace(CommandInterpreter ci) {
|
||||||
|
Map<Thread, StackTraceElement[]> map = Thread.getAllStackTraces();
|
||||||
|
for(Map.Entry<Thread, StackTraceElement[]> entry : map.entrySet()) {
|
||||||
|
Thread t = entry.getKey();
|
||||||
|
StackTraceElement[] trace = entry.getValue();
|
||||||
|
ci.println();
|
||||||
|
ci.print(t + " Alive=" + t.isAlive() + " Daemon="+t.isDaemon() + " State="+t.getState());
|
||||||
|
ci.println("===========================================================");
|
||||||
|
for (int i=0; i < trace.length; i++)
|
||||||
|
ci.println("\tat " + trace[i]);
|
||||||
|
}
|
||||||
|
ci.println();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue