rendered paste body public List getRuntimeClasspath(String action) { String serverHome = getServerHome(); ArrayList classpath = new ArrayList(); if( action.equals(JBossServerLaunchConfiguration.START)) { classpath.add(JavaRuntime.newArchiveRuntimeClasspathEntry(new Path(getStartJar()))); } else if( action.equals(JBossServerLaunchConfiguration.STOP)) { classpath.add(JavaRuntime.newArchiveRuntimeClasspathEntry(new Path(getShutdownJar()))); } else if( action.equals(JBossServerLaunchConfiguration.TWIDDLE)) { // Twiddle requires more classes and I'm too lazy to actually figure OUT which ones it needs. classpath.add(JavaRuntime.newArchiveRuntimeClasspathEntry(new Path(getTwiddleJar()))); addDirectory (serverHome, classpath, "lib"); addDirectory (serverHome, classpath, "lib" + File.separator + "endorsed"); addDirectory (serverHome, classpath, "client"); addDirectory (getConfigurationPath(), classpath, "lib"); } ArrayList runtimeClassPaths = convertClasspath(classpath, runtime.getVM()); return runtimeClassPaths; }